Skip to content

Commit

Permalink
Fix record access
Browse files Browse the repository at this point in the history
  • Loading branch information
voruti committed Dec 1, 2023
1 parent 7ce6a4a commit c0f0b0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class ServerHandshakeNetworkHandlerMixin {
"Lnet/minecraft/server/network/ServerLoginNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;)V"))
private void onProcessHandshakeStart(HandshakeC2SPacket packet, CallbackInfo ci) {
if (NetworkState.LOGIN.equals(packet.getNewNetworkState())) {
String[] split = ((HandshakeC2SPacketAccessor) packet).getAddress().split("\00");
String[] split = packet.address().split("\00");
if (split.length == 3 || split.length == 4) {
// override/insert forwarded IP into connection:
((ClientConnectionAccessor) connection).setAddress(
Expand Down

0 comments on commit c0f0b0c

Please sign in to comment.