aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-01 22:10:28 -0500
committermat <github@matdoes.dev>2022-05-01 22:10:28 -0500
commite1b6bc965a3f71d64b4dc3075da21c578ab5b508 (patch)
tree5a21ef239d8e5cabdc0b5d3d511e35dc25435041 /azalea-protocol/src
parent567c6f4f2c39976d170111b816806453636f8241 (diff)
downloadazalea-drasl-e1b6bc965a3f71d64b4dc3075da21c578ab5b508.tar.xz
Update read.rs
Diffstat (limited to 'azalea-protocol/src')
-rwxr-xr-xazalea-protocol/src/read.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs
index dd80bbc3..b4ba17ea 100755
--- a/azalea-protocol/src/read.rs
+++ b/azalea-protocol/src/read.rs
@@ -149,7 +149,7 @@ where
// "decompressing packet ({}ms)",
// start_time.elapsed().as_millis()
// );
- buf = compression_decoder(&mut &buf[..], compression_threshold)?;
+ buf = compression_decoder(&mut buf.as_slice(), compression_threshold)?;
}
// println!("decoding packet ({}ms)", start_time.elapsed().as_millis());