aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2022-08-31 20:11:34 +0000
committerUbuntu <github@matdoes.dev>2022-08-31 20:11:34 +0000
commite0cbf68df1903aafaa5a08b7c167465849e093a0 (patch)
treed3d89b26aacbb86cbacee27b5422d38ad9e0ceb5 /azalea-protocol
parent4678327848738e6b58a793321382b6ee0b528866 (diff)
downloadazalea-drasl-e0cbf68df1903aafaa5a08b7c167465849e093a0.tar.xz
test gravity
Diffstat (limited to 'azalea-protocol')
-rwxr-xr-xazalea-protocol/src/connect.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs
index e29ba1df..dbca4214 100755
--- a/azalea-protocol/src/connect.rs
+++ b/azalea-protocol/src/connect.rs
@@ -87,8 +87,8 @@ impl Connection<ClientboundHandshakePacket, ServerboundHandshakePacket> {
impl Connection<ClientboundLoginPacket, ServerboundLoginPacket> {
pub fn set_compression_threshold(&mut self, threshold: i32) {
- // if you pass a threshold of 0 or less, compression is disabled
- if threshold > 0 {
+ // if you pass a threshold of less than 0, compression is disabled
+ if threshold >= 0 {
self.compression_threshold = Some(threshold as u32);
} else {
self.compression_threshold = None;