From 7895f0f2c9f04515f24de7672f1101eac382cff6 Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Sat, 24 Dec 2022 10:18:58 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Esrc/main/java/de/zonlykroks/advancedsc?= =?UTF-8?q?ripts/mixin/ClientLoginNetworkHandlerMixin.java=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mixin/ClientLoginNetworkHandlerMixin.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/zonlykroks/advancedscripts/mixin/ClientLoginNetworkHandlerMixin.java b/src/main/java/de/zonlykroks/advancedscripts/mixin/ClientLoginNetworkHandlerMixin.java index 6578d63..979e8af 100644 --- a/src/main/java/de/zonlykroks/advancedscripts/mixin/ClientLoginNetworkHandlerMixin.java +++ b/src/main/java/de/zonlykroks/advancedscripts/mixin/ClientLoginNetworkHandlerMixin.java @@ -29,11 +29,9 @@ public class ClientLoginNetworkHandlerMixin { @Inject(method = "onSuccess", at = @At("TAIL")) public void isOnSteamwar(LoginSuccessS2CPacket packet, CallbackInfo ci) { - if(AdvancedScripts.isOnSteamwar) { - String adress = ((ClientLoginNetworkHandler) (Object)this).serverInfo.address; + String adress = ((ClientLoginNetworkHandler) (Object)this).serverInfo.address; - AdvancedScripts.isOnSteamwar = adress == "steamwar.de" || adress == "78.31.71.136"; - } + AdvancedScripts.isOnSteamwar = adress == "steamwar.de" || adress == "78.31.71.136"; } }