diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-27 02:13:21 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-27 02:13:21 +0900 |
commit | 8d6ab59ae120e40c16391132b20b7c0dc4eb0f07 (patch) | |
tree | a9a43535aab77484c2af21edba26964f01425966 /mod/src/main/java | |
parent | 14f1de38f3aa13e9d11b8347851ef4828ba5e2e9 (diff) | |
download | Skyblock-Dungeons-Guide-8d6ab59ae120e40c16391132b20b7c0dc4eb0f07.tar.gz Skyblock-Dungeons-Guide-8d6ab59ae120e40c16391132b20b7c0dc4eb0f07.tar.bz2 Skyblock-Dungeons-Guide-8d6ab59ae120e40c16391132b20b7c0dc4eb0f07.zip |
- Check if dungeonroominfo is instantiated (because it might not be)
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java')
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonRoomName.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonRoomName.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonRoomName.java index 0fc877a7..a8b94f1c 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonRoomName.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonRoomName.java @@ -75,7 +75,7 @@ public class FeatureDungeonRoomName extends TextHUDFeature { DungeonRoom dungeonRoom = DungeonsGuide.getDungeonsGuide().getDungeonFacade().getContext().getScaffoldParser().getRoomMap().get(roomPt); TextSpan actualBit = new TextSpan(new NullTextStyle(), ""); actualBit.addChild(new TextSpan(getStyle("in"), "You're in ")); - if (dungeonRoom == null) { + if (dungeonRoom == null || dungeonRoom.getDungeonRoomInfo() == null) { actualBit.addChild(new TextSpan(getStyle("roomname"), "Unknown")); } else { actualBit.addChild(new TextSpan(getStyle("roomname"), dungeonRoom.getDungeonRoomInfo().getName())); |