diff --git a/native/src/main/java/com/velocitypowered/natives/compression/LibdeflateVelocityCompressor.java b/native/src/main/java/com/velocitypowered/natives/compression/LibdeflateVelocityCompressor.java index 73e9ff7fc..d8c95b371 100644 --- a/native/src/main/java/com/velocitypowered/natives/compression/LibdeflateVelocityCompressor.java +++ b/native/src/main/java/com/velocitypowered/natives/compression/LibdeflateVelocityCompressor.java @@ -22,7 +22,7 @@ public class LibdeflateVelocityCompressor implements VelocityCompressor { } this.inflateCtx = inflate.init(); - this.deflateCtx = deflate.init(level == -1 ? 6 : level); + this.deflateCtx = deflate.init(correctedLevel); } @Override