mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 17:07:55 -04:00
re enable compression
This commit is contained in:
parent
8af8724bb6
commit
b057f14f17
@ -176,17 +176,13 @@ public class Network {
|
||||
continue;
|
||||
}
|
||||
|
||||
//set special settings to avoid miss timing issues
|
||||
if (packetInstance instanceof PacketLoginSuccess) {
|
||||
// login was okay, setting play status to avoid miss timing issues
|
||||
connection.setConnectionState(ConnectionState.PLAY);
|
||||
} else if (packetInstance instanceof PacketLoginSetCompression) {
|
||||
// instantly set compression. because handling is to slow...
|
||||
// compressionThreshold = ((PacketLoginSetCompression) packet).getThreshold();
|
||||
compressionThreshold = Integer.MAX_VALUE; // FIXME: 29.07.20 see #2
|
||||
compressionThreshold = ((PacketLoginSetCompression) packetInstance).getThreshold();
|
||||
} else if (packetInstance instanceof PacketSetCompression) {
|
||||
// instantly set compression. because handling is to slow...
|
||||
// compressionThreshold = ((PacketSetCompression) packet).getThreshold();
|
||||
compressionThreshold = Integer.MAX_VALUE; // FIXME: 29.07.20 see #2
|
||||
compressionThreshold = ((PacketSetCompression) packetInstance).getThreshold();
|
||||
}
|
||||
connection.handle(packetInstance);
|
||||
} catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user