File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
paper-server/src/main/java/io/papermc/paper/connection Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,12 @@ public boolean isTransferred() {
8282
8383 @ Override
8484 public SocketAddress getAddress () {
85- return this .handle .connection .getRemoteAddress ();
85+ return this .handle .connection .channel . remoteAddress ();
8686 }
8787
8888 @ Override
8989 public InetSocketAddress getClientAddress () {
90- return (InetSocketAddress ) this .handle .connection .channel . remoteAddress ();
90+ return (InetSocketAddress ) this .handle .connection .getRemoteAddress ();
9191 }
9292
9393 @ Override
Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ public PaperPlayerLoginConnection(final ServerLoginPacketListenerImpl packetList
3434
3535 @ Override
3636 public SocketAddress getAddress () {
37- return this .packetListener .connection .getRemoteAddress ();
37+ return this .packetListener .connection .channel . remoteAddress ();
3838 }
3939
4040 @ Override
4141 public InetSocketAddress getClientAddress () {
42- return (InetSocketAddress ) this .packetListener .connection .channel . remoteAddress ();
42+ return (InetSocketAddress ) this .packetListener .connection .getRemoteAddress ();
4343 }
4444
4545 @ Override
You can’t perform that action at this time.
0 commit comments