Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Bugfix -> fixed wrong data on velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
EinfacheSache committed Sep 11, 2023
1 parent 79e9b93 commit b4a5345
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
instance.getCore().debug("Player matched to DebugKeepAlivePacket (loading data...)");

EpollTcpInfo tcpInfo = ((EpollSocketChannel) channel).tcpInfo();
EpollTcpInfo tcpInfoBackend = ((EpollSocketChannel) ((ConnectedPlayer) player).getConnection().getChannel()).tcpInfo();
EpollTcpInfo tcpInfoBackend = null;

if (((ConnectedPlayer) player).getConnectedServer() != null && ((ConnectedPlayer) player).getConnectedServer().getConnection() != null) {
tcpInfoBackend = ((EpollSocketChannel) ((ConnectedPlayer) player).getConnectedServer().getConnection().getChannel()).tcpInfo();
}

long ping = System.currentTimeMillis() - pingMap.get(keepAliveResponseKey);
long neoRTT = 0;
Expand Down

0 comments on commit b4a5345

Please sign in to comment.