diff --git a/proxy/src/main/java/net/md_5/bungee/connection/PingHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/PingHandler.java index 82a608a88..644fda246 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/PingHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/PingHandler.java @@ -17,10 +17,10 @@ public class PingHandler extends PacketHandler private final ServerInfo target; private final Callback callback; // TODO: Update this to 1.6.2 style! - private static final ByteBuf pingBuf = Unpooled.wrappedBuffer( new byte[] + private static final ByteBuf pingBuf = Unpooled.unreleasableBuffer( Unpooled.wrappedBuffer( new byte[] { (byte) 0xFE, (byte) 0x01 - } ); + } ) ); @Override public void connected(ChannelWrapper channel) throws Exception