From 6a56f88114e79de7f5c7ce88853bf14afa282acd Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 26 Nov 2021 14:42:53 +0900 Subject: - Occasional NPE when objectMouseOver == null --- .../kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/kr/syeyoung') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java index 6f944038..e5a3c086 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java @@ -174,6 +174,7 @@ public class GeneralRoomProcessor implements RoomProcessor { if (FeatureRegistry.ADVANCED_ROOMEDIT.isEnabled() && FeatureRegistry.DEBUG.isEnabled()) { FontRenderer fr = Minecraft.getMinecraft().fontRendererObj; + if (Minecraft.getMinecraft().objectMouseOver == null) return; Entity en = Minecraft.getMinecraft().objectMouseOver.entityHit; if (en == null) return; -- cgit