13
0
geforkt von Mirrors/Velocity
Dieser Commit ist enthalten in:
Andrew Steinborn 2018-08-03 17:49:35 -04:00
Ursprung 68ded7ca7f
Commit 6f3397f76f
2 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -179,6 +179,9 @@ public class VelocityConfiguration {
", ipForwardingMode=" + ipForwardingMode + ", ipForwardingMode=" + ipForwardingMode +
", servers=" + servers + ", servers=" + servers +
", attemptConnectionOrder=" + attemptConnectionOrder + ", attemptConnectionOrder=" + attemptConnectionOrder +
", compressionThreshold=" + compressionThreshold +
", compressionLevel=" + compressionLevel +
", motdAsComponent=" + motdAsComponent +
'}'; '}';
} }

Datei anzeigen

@ -126,8 +126,10 @@ public class LoginSessionHandler implements MinecraftSessionHandler {
} }
int threshold = VelocityServer.getServer().getConfiguration().getCompressionThreshold(); int threshold = VelocityServer.getServer().getConfiguration().getCompressionThreshold();
inbound.write(new SetCompression(threshold)); if (threshold >= 0) {
inbound.setCompressionThreshold(threshold); inbound.write(new SetCompression(threshold));
inbound.setCompressionThreshold(threshold);
}
ServerLoginSuccess success = new ServerLoginSuccess(); ServerLoginSuccess success = new ServerLoginSuccess();
success.setUsername(profile.getName()); success.setUsername(profile.getName());