From 34812694b7a9c695f551d3cf2d14e8509650ffd8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 28 Apr 2024 13:49:21 -0400 Subject: [PATCH] Comparison fix --- src/engine/net/client/handlers/ArcLoginNotifyMsgHandler.java | 2 +- src/engine/server/world/WorldServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/handlers/ArcLoginNotifyMsgHandler.java b/src/engine/net/client/handlers/ArcLoginNotifyMsgHandler.java index 47b94d47..3785211a 100644 --- a/src/engine/net/client/handlers/ArcLoginNotifyMsgHandler.java +++ b/src/engine/net/client/handlers/ArcLoginNotifyMsgHandler.java @@ -69,7 +69,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler { // Send branch string if available from ConfigManager. - if (ConfigManager.currentRepoBranch != "") + if (!ConfigManager.currentRepoBranch.equals("")) ChatManager.sendSystemMessage(player, ConfigManager.currentRepoBranch); // Set player mask for QT diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index 1b6e35e5..2187545c 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -724,7 +724,7 @@ public class WorldServer { if (flashString == null) return; - if (flashString == "") + if (flashString.equals("")) flashString = "Rebooting for to fix bug."; Logger.info("Sending flash from external interface");