From aec3cfeeaf43c31f9f2a191aeca5e10b41bddf15 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Mon, 9 Oct 2023 17:51:16 +0900 Subject: - fix small npe bug in dg listener Signed-off-by: syeyoung --- .../kr/syeyoung/dungeonsguide/mod/events/listener/DungeonListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/events/listener/DungeonListener.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/events/listener/DungeonListener.java index 818efb1a..811f1678 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/events/listener/DungeonListener.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/events/listener/DungeonListener.java @@ -531,7 +531,7 @@ public class DungeonListener { DungeonContext context = DungeonsGuide.getDungeonsGuide().getDungeonFacade().getContext(); - if (DungeonsGuide.getDungeonsGuide().getDungeonFacade() != null) { + if (context != null) { EntityPlayerSP thePlayer = Minecraft.getMinecraft().thePlayer; if (context.getBossfightProcessor() != null) { -- cgit