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/Cargo.toml | 1 + azalea-core/src/registry_holder.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'azalea-core') diff --git a/azalea-core/Cargo.toml b/azalea-core/Cargo.toml index c1847e9c..8511cdfa 100644 --- a/azalea-core/Cargo.toml +++ b/azalea-core/Cargo.toml @@ -23,3 +23,4 @@ tracing = "0.1.40" [features] bevy_ecs = ["dep:bevy_ecs"] serde = ["dep:serde"] +strict_registry = [] 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