diff options
-rwxr-xr-x | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java index 453402a3..e071337d 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java @@ -97,8 +97,9 @@ public class SkyblockStatus { public static boolean isOnHypixel() { Minecraft mc = Minecraft.getMinecraft(); if (mc == null || mc.thePlayer == null) return false; - if (!mc.isSingleplayer() && mc.thePlayer.getClientBrand() != null) { - return mc.thePlayer.getClientBrand().startsWith("Hypixel BungeeCord"); + String clientBrand = mc.thePlayer.getClientBrand(); + if (!mc.isSingleplayer() && mc.loadingScreen != null) { + return clientBrand.startsWith("Hypixel BungeeCord"); } return false; } |