Builder's Guides

Builder's Guides

830k Downloads

Hold marker and look at ItemFrame crash

Ipsis opened this issue ยท 2 comments

commented

Holding a marker and looking at an ItemFrame will cause an error due to getting the blocks state of a position that is invalid.

Reported by MrAmericanMike on the curse page.

commented

The reason is that the DrawBlockHighlightEvent RayTraceResult target is not of type block. So you just need to ignore all of those events that are !BLOCK, just like the drawSelectionBox handler does.

commented

Fixes the bug, but removes the block highlight from air :(