From 71f1f098a8ecd68865b530a76df6fe0c906ea5ec Mon Sep 17 00:00:00 2001 From: exhq Date: Sun, 8 Oct 2023 11:21:59 +0330 Subject: [PATCH] now available for 1.20.2 --- gradle.properties | 10 +++++----- src/main/java/dev/exhq/EchosShittySkyBlockMod.java | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index 3467b25..923c9a7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,19 +2,19 @@ org.gradle.jvmargs=-Xmx1G org.gradle.parallel=true -owo_version=0.11.1+1.20 +owo_version=0.11.3+1.20.2 jarvis_version=1.1.2 # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.20.1 -yarn_mappings=1.20.1+build.10 +minecraft_version=1.20.2 +yarn_mappings=1.20.2+build.4 loader_version=0.14.22 # Mod Properties -mod_version=1.0.3 +mod_version=1.0.4 maven_group=dev.exhq archives_base_name=essm # Dependencies -fabric_version=0.87.0+1.20.1 \ No newline at end of file +fabric_version=0.89.3+1.20.2 \ No newline at end of file diff --git a/src/main/java/dev/exhq/EchosShittySkyBlockMod.java b/src/main/java/dev/exhq/EchosShittySkyBlockMod.java index 2f70bdf..047d9a6 100644 --- a/src/main/java/dev/exhq/EchosShittySkyBlockMod.java +++ b/src/main/java/dev/exhq/EchosShittySkyBlockMod.java @@ -6,6 +6,7 @@ import net.fabricmc.fabric.api.client.message.v1.ClientReceiveMessageEvents; import net.minecraft.client.MinecraftClient; import net.minecraft.scoreboard.Scoreboard; +import net.minecraft.scoreboard.ScoreboardDisplaySlot; import net.minecraft.scoreboard.ScoreboardPlayerScore; import net.minecraft.scoreboard.Team; import net.minecraft.text.Text; @@ -51,7 +52,7 @@ public void onInitializeClient() { var noColor = message.getString().replaceAll("ยง[a-f0-9]", ""); var scoreboard = MinecraftClient.getInstance().world.getScoreboard(); - var activeObjective = scoreboard.getObjectiveForSlot(Scoreboard.SIDEBAR_DISPLAY_SLOT_ID); + var activeObjective = scoreboard.getObjectiveForSlot(ScoreboardDisplaySlot.SIDEBAR); var actualScoreboardContent = new ArrayList(); if (activeObjective == null){ return;