diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -5,7 +5,9 @@ eclipse/* build/* - +logs/* +config/* +crash-reports/* run/* gradle/* diff --git a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java index eb30107f..45bac7e2 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java @@ -21,6 +21,7 @@ public class SkyblockStatus { public boolean isOnHypixel() { Minecraft mc = Minecraft.getMinecraft(); + if (mc == null || mc.thePlayer == null) return false; if (!mc.isSingleplayer() && mc.thePlayer.getClientBrand() != null) { Matcher matcher = SERVER_BRAND_PATTERN.matcher(mc.thePlayer.getClientBrand()); if (matcher.find()) |