aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/read.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-17 23:01:16 -0600
committermat <github@matdoes.dev>2021-12-17 23:01:16 -0600
commit498077e09f372ecd5c4f32f20363d7011f09e70a (patch)
tree6098f89e93319880cb7eeeb9dddf9d52b94771d4 /azalea-protocol/src/read.rs
parent493aae582adbf818dc4cfdbd0390961d36647d77 (diff)
downloadazalea-drasl-498077e09f372ecd5c4f32f20363d7011f09e70a.tar.xz
writing compressed packets
Diffstat (limited to 'azalea-protocol/src/read.rs')
-rw-r--r--azalea-protocol/src/read.rs3
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?;