Skip to content

Commit

Permalink
Picked from cc875d1. (Closes #1539)
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 committed Nov 8, 2024
1 parent bdaa405 commit cea9b0a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;

import java.net.SocketAddress;
import java.nio.charset.StandardCharsets;
import java.time.Instant;
import java.util.Arrays;
Expand Down Expand Up @@ -1951,4 +1952,8 @@ public void teleport(Location dest) {
public void bridge$teleport(Location dest) {
teleport(dest);
}

public SocketAddress getRawAddress() {
return this.connection.channel.remoteAddress();
}
}

0 comments on commit cea9b0a

Please sign in to comment.