From 2992fc6b4793e00cb35568e6bc42f7bde02463dd Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 15 Sep 2024 06:52:16 +0000 Subject: update simdnbt --- 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 d5961c78..882e2bce 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::read_tag(buf)?) + Ok(simdnbt::owned::read_tag(buf).map_err(simdnbt::Error::from)?) } } impl McBufReadable for simdnbt::owned::NbtCompound { fn read_from(buf: &mut Cursor<&[u8]>) -> Result { - match simdnbt::owned::read_tag(buf)? { + match simdnbt::owned::read_tag(buf).map_err(simdnbt::Error::from)? { simdnbt::owned::NbtTag::Compound(compound) => Ok(compound), _ => Err(BufReadError::Custom("Expected compound tag".to_string())), } -- cgit v1.2.3