From bf34701ce1cfe8ac18988b466ddf9d2b480b7ee5 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Mon, 12 Jul 2021 00:07:24 +0900 Subject: fix NPE --- .../dungeonsguide/features/impl/secret/FeatureSoulRoomWarning.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/kr/syeyoung') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureSoulRoomWarning.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureSoulRoomWarning.java index 43a97a01..decfc3ba 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureSoulRoomWarning.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureSoulRoomWarning.java @@ -75,6 +75,7 @@ public class FeatureSoulRoomWarning extends TextHUDFeature implements TickListen DungeonContext context = skyblockStatus.getContext(); EntityPlayerSP thePlayer = Minecraft.getMinecraft().thePlayer; + if (thePlayer == null) return; Point roomPt = context.getMapProcessor().worldPointToRoomPoint(thePlayer.getPosition()); DungeonRoom dungeonRoom = context.getRoomMapper().get(roomPt); if (dungeonRoom == null) return; -- cgit