From dfc815bd84ba0dc91d6d13fcd0bf28c28ba13064 Mon Sep 17 00:00:00 2001 From: Hazem <79111320+7azeemm@users.noreply.github.com> Date: Sun, 22 Dec 2024 04:04:43 +0100 Subject: fix locraw (#1089) --- src/main/java/de/hysky/skyblocker/utils/Utils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/de') diff --git a/src/main/java/de/hysky/skyblocker/utils/Utils.java b/src/main/java/de/hysky/skyblocker/utils/Utils.java index 10bf4063..21a67718 100644 --- a/src/main/java/de/hysky/skyblocker/utils/Utils.java +++ b/src/main/java/de/hysky/skyblocker/utils/Utils.java @@ -471,8 +471,8 @@ public class Utils { if (locRaw.has("server")) { server = locRaw.get("server").getAsString(); } - if (locRaw.has("gameType")) { - gameType = locRaw.get("gameType").getAsString(); + if (locRaw.has("gametype")) { + gameType = locRaw.get("gametype").getAsString(); isOnSkyblock = gameType.equals("SKYBLOCK"); } if (locRaw.has("mode")) { @@ -492,6 +492,7 @@ public class Utils { * @return not display the message in chat if the command is sent by the mod */ public static boolean onChatMessage(Text text, boolean overlay) { + if (overlay) return true; String message = text.getString(); if (message.startsWith("{\"server\":") && message.endsWith("}")) { -- cgit