From ad21ccc158c9037ec4a93bc28243418d425adcd1 Mon Sep 17 00:00:00 2001 From: ishland Date: Tue, 21 May 2024 12:28:27 +0800 Subject: [PATCH] fix: 1.20.4 client regression again Fixes #51 --- .../mixin/client/MixinMultiplayerServerListPinger1_20_2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric/src/main/java/com/ishland/raknetify/fabric/mixin/client/MixinMultiplayerServerListPinger1_20_2.java b/fabric/src/main/java/com/ishland/raknetify/fabric/mixin/client/MixinMultiplayerServerListPinger1_20_2.java index bf490b6..62c3c9b 100644 --- a/fabric/src/main/java/com/ishland/raknetify/fabric/mixin/client/MixinMultiplayerServerListPinger1_20_2.java +++ b/fabric/src/main/java/com/ishland/raknetify/fabric/mixin/client/MixinMultiplayerServerListPinger1_20_2.java @@ -42,7 +42,7 @@ public class MixinMultiplayerServerListPinger1_20_2 { @Dynamic - @WrapOperation(method = "add", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/ClientConnection;connect(Ljava/net/InetSocketAddress;ZLnet/minecraft/class_8743;)Lnet/minecraft/network/ClientConnection;")) + @WrapOperation(method = {"add", "method_3003"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/network/ClientConnection;method_10753(Ljava/net/InetSocketAddress;ZLnet/minecraft/class_8743;)Lnet/minecraft/network/ClientConnection;")) private ClientConnection redirectConnect(InetSocketAddress address, boolean useEpoll, DebugSampleLog log, Operation original, ServerInfo entry, Runnable runnable) { final PrefixUtil.Info info = PrefixUtil.getInfo(entry.address); return info.useRakNet() ? RakNetClientConnectionUtil.connect(address, useEpoll, info.largeMTU(), original, true) : original.call(address, useEpoll, null);