diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-21 23:23:16 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-21 23:23:16 +0900 |
commit | 53bcddbcbbcb4470a8d06019936420d983028e9b (patch) | |
tree | 156d40033b1b595213e36565b5293e6758b510c1 /src/main/java/kr/syeyoung/dungeonsguide | |
parent | 94a710964f164873a7238abb2e094d179deb331b (diff) | |
download | Skyblock-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/kr/syeyoung/dungeonsguide')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/EventListener.java | 5 |
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)); } |