From 877f98b87a8aed88327ade650b0faa6be1ea82db Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 21 Jun 2020 14:14:41 -0400 Subject: [PATCH] Fix typo in LibdeflateVelocityCompressor --- .../natives/compression/LibdeflateVelocityCompressor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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