From 190e630df4a82c7339832e0a38cf28db56e4d1da Mon Sep 17 00:00:00 2001 From: liam Date: Thu, 9 Mar 2023 15:04:55 +0000 Subject: [PATCH] actually fix welcomer --- src/main/java/cc/fascinated/wildaddons/Main.java | 2 +- .../wildaddons/addon/impl/chat/AutoWelcomerAddon.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc/fascinated/wildaddons/Main.java b/src/main/java/cc/fascinated/wildaddons/Main.java index c26f429..d280d79 100644 --- a/src/main/java/cc/fascinated/wildaddons/Main.java +++ b/src/main/java/cc/fascinated/wildaddons/Main.java @@ -15,7 +15,7 @@ import java.util.concurrent.Executors; public class Main implements ModInitializer { - public static final Logger LOGGER = LogManager.getLogger(Main.class); + public static final Logger LOGGER = LogManager.getLogger("WildAddons"); @Getter private static final ExecutorService executorService = Executors.newCachedThreadPool(); @Getter private static final MinecraftClient minecraftClient = MinecraftClient.getInstance(); @Getter private static final Gson gson = new GsonBuilder().create(); diff --git a/src/main/java/cc/fascinated/wildaddons/addon/impl/chat/AutoWelcomerAddon.java b/src/main/java/cc/fascinated/wildaddons/addon/impl/chat/AutoWelcomerAddon.java index 914f654..effa3b8 100644 --- a/src/main/java/cc/fascinated/wildaddons/addon/impl/chat/AutoWelcomerAddon.java +++ b/src/main/java/cc/fascinated/wildaddons/addon/impl/chat/AutoWelcomerAddon.java @@ -26,7 +26,7 @@ public class AutoWelcomerAddon extends Addon { return; } - if (waitingForReply && messageStripped.equals("+1 Gem for welcoming")) { + if (waitingForReply && messageStripped.startsWith("+1 Gem for welcoming")) { Statistic.PLAYERS_WELCOMED.increment(); // Increment the stat waitingForReply = false; return;