aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-21 23:00:28 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-21 23:00:28 +0900
commit600292283c4c9e8a2f0a4b69186553d08ca562b2 (patch)
treebc87ca5028cb6b546f0e88a1418a0b2b1c679952
parent643ca3e4c149fa91be782ef36391f3492d404d3b (diff)
downloadSkyblock-Dungeons-Guide-600292283c4c9e8a2f0a4b69186553d08ca562b2.tar.gz
Skyblock-Dungeons-Guide-600292283c4c9e8a2f0a4b69186553d08ca562b2.tar.bz2
Skyblock-Dungeons-Guide-600292283c4c9e8a2f0a4b69186553d08ca562b2.zip
Methods for Identifying Skyblock Status
-rw-r--r--build.gradle5
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java6
2 files changed, 11 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 3aa6af04..7da254c6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,6 +3,7 @@
buildscript {
repositories {
jcenter()
+ mavenCentral()
maven {
name = "forge"
url = "https://files.minecraftforge.net/maven"
@@ -58,7 +59,11 @@ dependencies {
// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
+ compileOnly 'org.projectlombok:lombok:1.18.16'
+ annotationProcessor 'org.projectlombok:lombok:1.18.16'
+ testCompileOnly 'org.projectlombok:lombok:1.18.16'
+ testAnnotationProcessor 'org.projectlombok:lombok:1.18.16'
}
processResources
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
index f479864b..eb30107f 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
@@ -33,6 +33,12 @@ public class SkyblockStatus {
private static final Set<String> SKYBLOCK_IN_ALL_LANGUAGES = Sets.newHashSet("SKYBLOCK");
public void updateStatus() {
+ if (!isOnHypixel()) {
+ isOnDungeon = false;
+ isOnSkyblock = false;
+ return;
+ }
+
Scoreboard scoreboard = Minecraft.getMinecraft().thePlayer.getWorldScoreboard();
ScoreObjective scoreObjective = scoreboard.getObjectiveInDisplaySlot(1);
if (scoreObjective == null) return;