diff options
| author | mat <github@matdoes.dev> | 2021-12-17 23:01:16 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-17 23:01:16 -0600 |
| commit | 498077e09f372ecd5c4f32f20363d7011f09e70a (patch) | |
| tree | 6098f89e93319880cb7eeeb9dddf9d52b94771d4 /azalea-protocol/src/read.rs | |
| parent | 493aae582adbf818dc4cfdbd0390961d36647d77 (diff) | |
| download | azalea-drasl-498077e09f372ecd5c4f32f20363d7011f09e70a.tar.xz | |
writing compressed packets
Diffstat (limited to 'azalea-protocol/src/read.rs')
| -rw-r--r-- | azalea-protocol/src/read.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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<R>( 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?; |
