diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java index cf68e134b..f76e82f95 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java @@ -29,7 +29,8 @@ public class MinecraftCompressDecoder extends MessageToMessageDecoder { int claimedUncompressedSize = ProtocolUtils.readVarInt(in); if (claimedUncompressedSize == 0) { // Strip the now-useless uncompressed size, this message is already uncompressed. - out.add(in.retainedSlice()); + out.add(in.copy()); + in.skipBytes(in.readableBytes()); return; }