Merge branch 'network-caching' of https://github.com/Minestom/Minestom into network-caching

This commit is contained in:
Eoghanmc22 2021-03-07 21:42:48 -05:00
commit 6e18d2bcfe

View File

@ -201,7 +201,8 @@ public class NettyPlayerConnection extends PlayerConnection {
synchronized (tickBuffer) {
final ByteBuf copy = tickBuffer.copy();
ChannelFuture channelFuture = channel.write(new FramedPacket(copy)).addListener(future -> copy.release());
ChannelFuture channelFuture = channel.write(new FramedPacket(copy));
channelFuture.addListener(future -> copy.release());
// Netty debug
if (MinecraftServer.shouldProcessNettyErrors()) {