mojira.dev
MC-303971

Trying to target a block through a block which extends outside of its space causes the extending block to be targeted even when not targeting its outline

Full Description: The player view raycast method does not work correctly in some edge cases when the blocks outline extends past the block itself.


See images 1.png & 2.png.
How to reproduce

  • Place a lectern and a full block above it.

  • Position yourself in such a way that your camera vector passes through the following things in the following order:

    • The 1x1x1 space occupied by the lectern but not its outline.

    • The full block above the lectern.

    • The outline of the lectern.

Logically this setup should have the Expected Result of the block above the lectern being highlighted. Instead the Actual Result here is that the lectern is chosen as the highlighted block instead.

Linked issues

Attachments

Comments 1

I have removed your second edge case from this report, since it’s tracked in MC-248786.

Syrenyx

(Unassigned)

Confirmed

Platform

Low

Hitboxes

1.21.10, 25w45a

Retrieved