temporary fix for #2

This commit is contained in:
Bixilon 2020-07-29 16:19:35 +02:00
parent 99317330e4
commit 2e23cb61b7
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -186,7 +186,8 @@ public class Network {
connection.setConnectionState(ConnectionState.PLAY);
} else if (packet instanceof PacketLoginSetCompression) {
// instantly set compression. because handling is to slow...
compressionThreshold = ((PacketLoginSetCompression) packet).getThreshold();
// compressionThreshold = ((PacketLoginSetCompression) packet).getThreshold();
compressionThreshold = Integer.MAX_VALUE; // FIXME: 29.07.20 see #2
}
connection.handle(packet);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {