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"; } }