aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-05-14 09:13:22 +0000
committermat <git@matdoes.dev>2024-05-14 09:13:34 +0000
commitb00106b7ff18c2d1fc5b751227616f5bf1f3495c (patch)
tree3329ea18252df21af544546d71c333946e846bb1 /azalea-core/src
parent8138d388e7126df28cb9e12d102d05f9060aaa31 (diff)
downloadazalea-drasl-b00106b7ff18c2d1fc5b751227616f5bf1f3495c.tar.xz
update simdnbt
Diffstat (limited to 'azalea-core/src')
-rw-r--r--azalea-core/src/registry_holder.rs3
1 files changed, 2 insertions, 1 deletions
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) => {