aboutsummaryrefslogtreecommitdiff
path: root/azalea-core
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-core')
-rw-r--r--azalea-core/Cargo.toml1
-rw-r--r--azalea-core/src/registry_holder.rs3
2 files changed, 3 insertions, 1 deletions
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) => {