aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java/kr
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-02-27 02:06:27 +0900
committersyeyoung <cyoung06@naver.com>2023-02-27 02:06:27 +0900
commit7055654f7fd676ba915cdf5a0295d6a9224cffef (patch)
tree61d8a182b0562feb427073fd9416a4b73408445b /mod/src/main/java/kr
parent503bedead4b991c17ef5406b4f7236bcc9cc9645 (diff)
downloadSkyblock-Dungeons-Guide-7055654f7fd676ba915cdf5a0295d6a9224cffef.tar.gz
Skyblock-Dungeons-Guide-7055654f7fd676ba915cdf5a0295d6a9224cffef.tar.bz2
Skyblock-Dungeons-Guide-7055654f7fd676ba915cdf5a0295d6a9224cffef.zip
- Fix NPE on FeatureDungeonCurrentRoomSecrets
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java/kr')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonCurrentRoomSecrets.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonCurrentRoomSecrets.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonCurrentRoomSecrets.java
index 502707bf..85b9ddd7 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonCurrentRoomSecrets.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonCurrentRoomSecrets.java
@@ -65,7 +65,8 @@ public class FeatureDungeonCurrentRoomSecrets extends TextHUDFeature {
@Override
public TextSpan getText() {
- if (DungeonsGuide.getDungeonsGuide().getDungeonFacade().getContext().getBossfightProcessor() != null) return new TextSpan(new NullTextStyle(), "");
+ if (DungeonsGuide.getDungeonsGuide().getDungeonFacade().getContext()
+ != null && DungeonsGuide.getDungeonsGuide().getDungeonFacade().getContext().getBossfightProcessor() != null) return new TextSpan(new NullTextStyle(), "");
TextSpan actualBit = new TextSpan(new NullTextStyle(), "");
actualBit.addChild(new TextSpan(getStyle("title"), "Secrets In Room"));
actualBit.addChild(new TextSpan(getStyle("separator"), ": "));