#1852: Fix packet compression when BungeeCord and the server are set to different compression levels.
This commit is contained in:
parent
8a1030e21c
commit
013320fd9e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user