diff options
| author | mat <github@matdoes.dev> | 2022-06-23 15:28:33 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-06-23 15:28:33 -0500 |
| commit | ba399c4440c2d182f55cba7fab068e1118bcc2b7 (patch) | |
| tree | 20188f93e3fe16b747350ef2b44678b188313c61 /azalea-nbt/src/decode.rs | |
| parent | 5ca49e680ed8519456dc9a9af84321d4b69dcbb3 (diff) | |
| download | azalea-drasl-ba399c4440c2d182f55cba7fab068e1118bcc2b7.tar.xz | |
switch things to use azalea-buf
Diffstat (limited to 'azalea-nbt/src/decode.rs')
| -rwxr-xr-x | azalea-nbt/src/decode.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-nbt/src/decode.rs b/azalea-nbt/src/decode.rs index 73cd613e..1c011839 100755 --- a/azalea-nbt/src/decode.rs +++ b/azalea-nbt/src/decode.rs @@ -1,5 +1,6 @@ use crate::Error; use crate::Tag; +use azalea_buf::McBufReadable; use byteorder::{ReadBytesExt, BE}; use flate2::read::{GzDecoder, ZlibDecoder}; use std::collections::HashMap; @@ -139,7 +140,7 @@ impl Tag { impl McBufReadable for Tag { fn read_into(buf: &mut impl Read) -> Result<Self, String> { - match Tag::read(self) { + match Tag::read(buf) { Ok(r) => Ok(r), // Err(e) => Err(e.to_string()), Err(e) => Err(e.to_string()).unwrap(), |
