mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-04-06 16:40:52 +08:00
Adjustments.
This commit is contained in:
parent
68ded7ca7f
commit
6f3397f76f
@ -179,6 +179,9 @@ public class VelocityConfiguration {
|
||||
", ipForwardingMode=" + ipForwardingMode +
|
||||
", servers=" + servers +
|
||||
", attemptConnectionOrder=" + attemptConnectionOrder +
|
||||
", compressionThreshold=" + compressionThreshold +
|
||||
", compressionLevel=" + compressionLevel +
|
||||
", motdAsComponent=" + motdAsComponent +
|
||||
'}';
|
||||
}
|
||||
|
||||
|
@ -126,8 +126,10 @@ public class LoginSessionHandler implements MinecraftSessionHandler {
|
||||
}
|
||||
|
||||
int threshold = VelocityServer.getServer().getConfiguration().getCompressionThreshold();
|
||||
inbound.write(new SetCompression(threshold));
|
||||
inbound.setCompressionThreshold(threshold);
|
||||
if (threshold >= 0) {
|
||||
inbound.write(new SetCompression(threshold));
|
||||
inbound.setCompressionThreshold(threshold);
|
||||
}
|
||||
|
||||
ServerLoginSuccess success = new ServerLoginSuccess();
|
||||
success.setUsername(profile.getName());
|
||||
|
Loading…
x
Reference in New Issue
Block a user