aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-21 23:19:23 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-21 23:19:23 +0900
commitf8c19203b0e3df1a1603996f7695fd06b17de4d9 (patch)
tree11c7f3d5209285764640e5c8c0802a958852acdc
parent600292283c4c9e8a2f0a4b69186553d08ca562b2 (diff)
downloadSkyblock-Dungeons-Guide-f8c19203b0e3df1a1603996f7695fd06b17de4d9.tar.gz
Skyblock-Dungeons-Guide-f8c19203b0e3df1a1603996f7695fd06b17de4d9.tar.bz2
Skyblock-Dungeons-Guide-f8c19203b0e3df1a1603996f7695fd06b17de4d9.zip
Methods for Identifying Skyblock Status
-rw-r--r--.gitignore4
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java1
2 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index f20fdc9f..8833cba4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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())