mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-07 09:42:03 +01:00
use the correct packet size logger instance
This commit is contained in:
parent
50e9952e64
commit
7078b18f18
@ -74,7 +74,7 @@ public class ViaFabricPlusBaseVersionProvider extends BaseVersionProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ChannelPipeline channelPipeline = channel.pipeline().addLast("timeout", new ReadTimeoutHandler(30));
|
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);
|
channelPipeline.addLast("packet_handler", clientConnection);
|
||||||
}
|
}
|
||||||
}).channel(useEpoll ? EpollSocketChannel.class : NioSocketChannel.class).connect(address);
|
}).channel(useEpoll ? EpollSocketChannel.class : NioSocketChannel.class).connect(address);
|
||||||
|
Loading…
Reference in New Issue
Block a user