diff options
author | syeyoung <cyong06@naver.com> | 2021-07-12 00:07:24 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-07-12 00:07:24 +0900 |
commit | bf34701ce1cfe8ac18988b466ddf9d2b480b7ee5 (patch) | |
tree | 669efd99d2bf9b55e8b9cd9ec17eb04580c39a84 /src/main/java/kr/syeyoung/dungeonsguide/features | |
parent | 0508914bfe927cdeb8efd148e99e5290eb01fe51 (diff) | |
download | Skyblock-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/syeyoung/dungeonsguide/features')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureSoulRoomWarning.java | 1 |
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; |