aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-07-12 00:07:24 +0900
committersyeyoung <cyong06@naver.com>2021-07-12 00:07:24 +0900
commitbf34701ce1cfe8ac18988b466ddf9d2b480b7ee5 (patch)
tree669efd99d2bf9b55e8b9cd9ec17eb04580c39a84 /src/main/java/kr
parent0508914bfe927cdeb8efd148e99e5290eb01fe51 (diff)
downloadSkyblock-Dungeons-Guide-bf34701ce1cfe8ac18988b466ddf9d2b480b7ee5.tar.gz
Skyblock-Dungeons-Guide-bf34701ce1cfe8ac18988b466ddf9d2b480b7ee5.tar.bz2
Skyblock-Dungeons-Guide-bf34701ce1cfe8ac18988b466ddf9d2b480b7ee5.zip
fix NPE
Diffstat (limited to 'src/main/java/kr')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureSoulRoomWarning.java1
1 files changed, 1 insertions, 0 deletions
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;