aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/hysky/skyblocker/utils/Utils.java5
1 files changed, 3 insertions, 2 deletions
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("}")) {