fix: interactive overlay falling block crash
@@ -24,6 +24,7 @@ public class CapabililtyInteractiveOverlay {
@SubscribeEvent
public void renderOverlay(DrawBlockHighlightEvent event) {
RayTraceResult target = event.getTarget();
+ if (target.typeOfHit == RayTraceResult.Type.BLOCK) {
EntityPlayer player = event.getPlayer();
World world = player.getEntityWorld();
BlockPos blockPos = target.getBlockPos();
@@ -45,3 +46,4 @@ public class CapabililtyInteractiveOverlay {
}
}
}
+}
