Skip to content

Commit

Permalink
Fix getRawAddress not implemented (#1539 #1541)
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Nov 8, 2024
1 parent c3818c5 commit cc875d1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;

import java.net.SocketAddress;
import java.util.Collections;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -1728,4 +1729,8 @@ public void teleport(Location dest) {
public boolean bridge$teleportCancelled() {
return arclight$teleportCancelled;
}

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

0 comments on commit cc875d1

Please sign in to comment.