From e0cbf68df1903aafaa5a08b7c167465849e093a0 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 31 Aug 2022 20:11:34 +0000 Subject: test gravity --- azalea-protocol/src/connect.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-protocol/src') 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 { impl Connection { 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; -- cgit v1.2.3