From 498077e09f372ecd5c4f32f20363d7011f09e70a Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 17 Dec 2021 23:01:16 -0600 Subject: writing compressed packets --- azalea-protocol/src/read.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'azalea-protocol/src/read.rs') diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index 96946f29..7b94135a 100644 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -40,7 +40,7 @@ where // this is always true in multiplayer, false in singleplayer static VALIDATE_DECOMPRESSED: bool = true; -static MAXIMUM_UNCOMPRESSED_LENGTH: u32 = 8388608; +pub static MAXIMUM_UNCOMPRESSED_LENGTH: u32 = 8388608; async fn compression_decoder( stream: &mut R, @@ -102,7 +102,6 @@ where { let mut buf = frame_splitter(stream).await?; if let Some(compression_threshold) = compression_threshold { - println!("compression_decoder"); buf = compression_decoder(&mut buf.as_slice(), compression_threshold).await?; } let packet = packet_decoder(&mut buf.as_slice(), flow).await?; -- cgit v1.2.3