mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +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()) {
|
if (packetSize >= MinecraftServer.getCompressionThreshold()) {
|
||||||
// Packet large enough, compress
|
// Packet large enough, compress
|
||||||
buffer.position(contentStart);
|
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();
|
final ByteBuffer uncompressedCopy = localBuffer().put(uncompressedContent).flip();
|
||||||
|
|
||||||
Deflater deflater = COMPRESSOR.get();
|
Deflater deflater = COMPRESSOR.get();
|
||||||
|
Loading…
Reference in New Issue
Block a user