mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 13:08:19 +01:00
There is no commit here - fix compression
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
8f1e84ffdb
commit
adf1023e35
@ -198,7 +198,7 @@ public final class PacketUtils {
|
||||
if (packetSize >= MinecraftServer.getCompressionThreshold()) {
|
||||
// Packet large enough, compress
|
||||
buffer.position(contentStart);
|
||||
final ByteBuffer uncompressedContent = buffer.slice().limit(contentStart + packetSize);
|
||||
final ByteBuffer uncompressedContent = buffer.slice().limit(packetSize);
|
||||
final ByteBuffer uncompressedCopy = localBuffer().put(uncompressedContent).flip();
|
||||
|
||||
Deflater deflater = COMPRESSOR.get();
|
||||
|
Loading…
Reference in New Issue
Block a user