Fix typo in previous commit

This commit is contained in:
md_5
2021-06-13 11:23:54 +10:00
parent c57bf61114
commit a25c2b325b

View File

@@ -31,7 +31,7 @@ public class PacketDecompressor extends MessageToMessageDecoder<ByteBuf>
int size = DefinedPacket.readVarInt( in ); int size = DefinedPacket.readVarInt( in );
if ( size == 0 ) if ( size == 0 )
{ {
out.add( in ); out.add( in.retain() );
} else } else
{ {
ByteBuf decompressed = ctx.alloc().directBuffer(); ByteBuf decompressed = ctx.alloc().directBuffer();