From 833f306e8b8faddd232b5c736b2134ed08adcb6c Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Fri, 21 Feb 2025 13:43:56 -0600 Subject: Fix errors on switching dimensions (#204) * Fix errors on switching dimensions * fix other tests * clippy * fix log feature in test_simulation * fix chunks oops --- azalea-world/src/container.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'azalea-world/src') diff --git a/azalea-world/src/container.rs b/azalea-world/src/container.rs index 9fa5d7f9..f7f05a89 100644 --- a/azalea-world/src/container.rs +++ b/azalea-world/src/container.rs @@ -51,6 +51,7 @@ impl InstanceContainer { name: ResourceLocation, height: u32, min_y: i32, + default_registries: &RegistryHolder, ) -> Arc> { if let Some(existing_lock) = self.instances.get(&name).and_then(|world| world.upgrade()) { let existing = existing_lock.read(); @@ -72,7 +73,7 @@ impl InstanceContainer { chunks: ChunkStorage::new(height, min_y), entities_by_chunk: HashMap::new(), entity_by_id: IntMap::default(), - registries: RegistryHolder::default(), + registries: default_registries.clone(), })); debug!("Added new instance {name}"); self.instances.insert(name, Arc::downgrade(&world)); -- cgit v1.2.3