aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonRoomName.java2
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()));