diff options
| author | Ubuntu <github@matdoes.dev> | 2022-08-31 20:11:34 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-08-31 20:11:34 +0000 |
| commit | e0cbf68df1903aafaa5a08b7c167465849e093a0 (patch) | |
| tree | d3d89b26aacbb86cbacee27b5422d38ad9e0ceb5 /azalea-protocol | |
| parent | 4678327848738e6b58a793321382b6ee0b528866 (diff) | |
| download | azalea-drasl-e0cbf68df1903aafaa5a08b7c167465849e093a0.tar.xz | |
test gravity
Diffstat (limited to 'azalea-protocol')
| -rwxr-xr-x | azalea-protocol/src/connect.rs | 4 |
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; |
