Make sure to get the right version

This commit is contained in:
FlorianMichael 2023-09-10 23:57:07 +02:00
parent f1cbda15e2
commit 1caae1226c
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -58,7 +58,7 @@ public class MixinConnectScreen_1 {
}
}
if (ClientsideFixes.LEGACY_SRV_RESOLVE.contains(ProtocolHack.getTargetVersion())) {
if (ClientsideFixes.LEGACY_SRV_RESOLVE.contains(ProtocolHack.getTargetVersion(original))) {
final var direct = AllowedAddressResolver.DEFAULT.addressResolver.resolve(this.field_33737).orElse(null);
if (direct != null) return direct.getInetSocketAddress();