diff --git a/proxy/src/main/java/net/md_5/bungee/compress/PacketDecompressor.java b/proxy/src/main/java/net/md_5/bungee/compress/PacketDecompressor.java index c1770016..4f33bc79 100644 --- a/proxy/src/main/java/net/md_5/bungee/compress/PacketDecompressor.java +++ b/proxy/src/main/java/net/md_5/bungee/compress/PacketDecompressor.java @@ -35,7 +35,8 @@ public class PacketDecompressor extends ByteToMessageDecoder int size = DefinedPacket.readVarInt( in ); if ( size == 0 ) { - out.add( in.readBytes( in.readableBytes() ) ); + out.add( in.copy() ); + in.readerIndex( in.writerIndex() ); } else { ByteBuf decompressed = ctx.alloc().directBuffer();