#1852: Fix packet compression when BungeeCord and the server are set to different compression levels.

This commit is contained in:
md_5 2015-09-16 19:44:55 +10:00
parent 8a1030e21c
commit 013320fd9e

View File

@ -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();