From b00106b7ff18c2d1fc5b751227616f5bf1f3495c Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 14 May 2024 09:13:22 +0000 Subject: update simdnbt --- azalea-core/src/registry_holder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'azalea-core/src') diff --git a/azalea-core/src/registry_holder.rs b/azalea-core/src/registry_holder.rs index c75e3919..7e179e6f 100644 --- a/azalea-core/src/registry_holder.rs +++ b/azalea-core/src/registry_holder.rs @@ -51,8 +51,9 @@ impl RegistryHolder { // convert the value to T let mut nbt_bytes = Vec::new(); value.write(&mut nbt_bytes); + let alloc = Default::default(); let nbt_borrow_compound = - simdnbt::borrow::NbtCompound::read(&mut Cursor::new(&nbt_bytes)).ok()?; + simdnbt::borrow::NbtCompound::read(&mut Cursor::new(&nbt_bytes), &alloc).ok()?; let value = match T::from_compound(&nbt_borrow_compound) { Ok(value) => value, Err(err) => { -- cgit v1.2.3