diff --git a/src/main/java/com/viaversion/aas/util/AddressParser.java b/src/main/java/com/viaversion/aas/util/AddressParser.java index 701e973..4ec288a 100644 --- a/src/main/java/com/viaversion/aas/util/AddressParser.java +++ b/src/main/java/com/viaversion/aas/util/AddressParser.java @@ -21,7 +21,7 @@ public class AddressParser { public AddressParser parse(String address, String viaHostName) { address = StringsKt.removeSuffix(address, "."); - String suffixRemoved = StringsKt.removeSuffix(address, viaHostName); + String suffixRemoved = StringsKt.removeSuffix(address, "." + viaHostName); if (suffixRemoved.equals(address)) { serverAddress = address; @@ -108,4 +108,4 @@ public class AddressParser { if (ver != null) protocol = ver.getVersion(); } } -} \ No newline at end of file +}