aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-21 23:23:16 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-21 23:23:16 +0900
commit53bcddbcbbcb4470a8d06019936420d983028e9b (patch)
tree156d40033b1b595213e36565b5293e6758b510c1 /src/main/java
parent94a710964f164873a7238abb2e094d179deb331b (diff)
downloadSkyblock-Dungeons-Guide-53bcddbcbbcb4470a8d06019936420d983028e9b.tar.gz
Skyblock-Dungeons-Guide-53bcddbcbbcb4470a8d06019936420d983028e9b.tar.bz2
Skyblock-Dungeons-Guide-53bcddbcbbcb4470a8d06019936420d983028e9b.zip
Dungeon Context and clearing
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/EventListener.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java b/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
index 071cc6d5..2700b6bf 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
@@ -15,7 +15,10 @@ public class EventListener {
SkyblockStatus skyblockStatus = DungeonsGuide.getDungeonsGuide().getSkyblockStatus();
boolean isOnDungeon = skyblockStatus.isOnDungeon();
skyblockStatus.updateStatus();
- if (!skyblockStatus.isOnDungeon()) return;
+ if (!skyblockStatus.isOnDungeon()) {
+ skyblockStatus.setContext(null);
+ return;
+ }
if (isOnDungeon) skyblockStatus.getContext().tick();
else skyblockStatus.setContext(new DungeonContext(Minecraft.getMinecraft().thePlayer.worldObj));
}