Hold marker and look at ItemFrame crash
Ipsis opened this issue ยท 2 comments
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.
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.