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
1x1x1space 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.
I have removed your second edge case from this report, since it’s tracked in MC-248786.