Skip to content

Commit

Permalink
fix: 1.20.4 client regression again
Browse files Browse the repository at this point in the history
Fixes #51
  • Loading branch information
ishland committed May 21, 2024
1 parent 845b13f commit ad21ccc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ClientConnection> 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);
Expand Down

0 comments on commit ad21ccc

Please sign in to comment.