diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-21 23:19:23 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-21 23:19:23 +0900 |
commit | f8c19203b0e3df1a1603996f7695fd06b17de4d9 (patch) | |
tree | 11c7f3d5209285764640e5c8c0802a958852acdc /src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | |
parent | 600292283c4c9e8a2f0a4b69186553d08ca562b2 (diff) | |
download | Skyblock-Dungeons-Guide-f8c19203b0e3df1a1603996f7695fd06b17de4d9.tar.gz Skyblock-Dungeons-Guide-f8c19203b0e3df1a1603996f7695fd06b17de4d9.tar.bz2 Skyblock-Dungeons-Guide-f8c19203b0e3df1a1603996f7695fd06b17de4d9.zip |
Methods for Identifying Skyblock Status
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | 1 |
1 files changed, 1 insertions, 0 deletions
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()) |