From 600292283c4c9e8a2f0a4b69186553d08ca562b2 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Sat, 21 Nov 2020 23:00:28 +0900 Subject: Methods for Identifying Skyblock Status --- src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java index f479864b..eb30107f 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java @@ -33,6 +33,12 @@ public class SkyblockStatus { private static final Set SKYBLOCK_IN_ALL_LANGUAGES = Sets.newHashSet("SKYBLOCK"); public void updateStatus() { + if (!isOnHypixel()) { + isOnDungeon = false; + isOnSkyblock = false; + return; + } + Scoreboard scoreboard = Minecraft.getMinecraft().thePlayer.getWorldScoreboard(); ScoreObjective scoreObjective = scoreboard.getObjectiveInDisplaySlot(1); if (scoreObjective == null) return; -- cgit