use the correct packet size logger instance

This commit is contained in:
FlorianMichael 2023-09-16 16:09:38 +02:00
parent 50e9952e64
commit 7078b18f18
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -74,7 +74,7 @@ public class ViaFabricPlusBaseVersionProvider extends BaseVersionProvider {
}
ChannelPipeline channelPipeline = channel.pipeline().addLast("timeout", new ReadTimeoutHandler(30));
ClientConnection.addHandlers(channelPipeline, NetworkSide.CLIENTBOUND, new PacketSizeLogger(new PerformanceLog()));
ClientConnection.addHandlers(channelPipeline, NetworkSide.CLIENTBOUND, clientConnection.packetSizeLogger);
channelPipeline.addLast("packet_handler", clientConnection);
}
}).channel(useEpoll ? EpollSocketChannel.class : NioSocketChannel.class).connect(address);