From ea64fba7f655b9afa03d57e8590c16e024f396f3 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Fri, 5 Jul 2024 00:45:45 -0500 Subject: upgrade to simdnbt 0.6 (#160) --- azalea-buf/src/read.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-buf/src') diff --git a/azalea-buf/src/read.rs b/azalea-buf/src/read.rs index ad9766c0..d5961c78 100755 --- a/azalea-buf/src/read.rs +++ b/azalea-buf/src/read.rs @@ -344,13 +344,13 @@ impl McBufReadable for [T; N] { impl McBufReadable for simdnbt::owned::NbtTag { fn read_from(buf: &mut Cursor<&[u8]>) -> Result { - Ok(simdnbt::owned::NbtTag::read(buf)?) + Ok(simdnbt::owned::read_tag(buf)?) } } impl McBufReadable for simdnbt::owned::NbtCompound { fn read_from(buf: &mut Cursor<&[u8]>) -> Result { - match simdnbt::owned::NbtTag::read(buf)? { + match simdnbt::owned::read_tag(buf)? { simdnbt::owned::NbtTag::Compound(compound) => Ok(compound), _ => Err(BufReadError::Custom("Expected compound tag".to_string())), } -- cgit v1.2.3