From f8c19203b0e3df1a1603996f7695fd06b17de4d9 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Sat, 21 Nov 2020 23:19:23 +0900 Subject: Methods for Identifying Skyblock Status --- src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java') 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()) -- cgit