From 8b526bcabe633b44938686bc06c2c071a2dbae06 Mon Sep 17 00:00:00 2001 From: themode Date: Mon, 16 Nov 2020 17:42:37 +0100 Subject: [PATCH] Decrease compression level to 3 --- .../minestom/server/network/netty/codec/PacketCompressor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/network/netty/codec/PacketCompressor.java b/src/main/java/net/minestom/server/network/netty/codec/PacketCompressor.java index 4e9c8ed8c..eae4f8313 100644 --- a/src/main/java/net/minestom/server/network/netty/codec/PacketCompressor.java +++ b/src/main/java/net/minestom/server/network/netty/codec/PacketCompressor.java @@ -33,7 +33,7 @@ public class PacketCompressor extends ByteToMessageCodec { private final byte[] buffer = new byte[8192]; - private final Deflater deflater = new Deflater(); + private final Deflater deflater = new Deflater(3); private final Inflater inflater = new Inflater(); public PacketCompressor(int threshold) {