From a25c2b325b021061936640f3fbc236ed8e4512c0 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 13 Jun 2021 11:23:54 +1000 Subject: [PATCH] Fix typo in previous commit --- .../main/java/net/md_5/bungee/compress/PacketDecompressor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e239b980..445ee947 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 @@ -31,7 +31,7 @@ public class PacketDecompressor extends MessageToMessageDecoder int size = DefinedPacket.readVarInt( in ); if ( size == 0 ) { - out.add( in ); + out.add( in.retain() ); } else { ByteBuf decompressed = ctx.alloc().directBuffer();