diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-02-21 13:43:56 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-21 13:43:56 -0600 |
| commit | 833f306e8b8faddd232b5c736b2134ed08adcb6c (patch) | |
| tree | 08a59009f3118d5c56891d6c4fb6a0293aa9e6fc /azalea-world/src | |
| parent | 63b1036a96c45b0fefc6ca2501f1cc479acc95de (diff) | |
| download | azalea-drasl-833f306e8b8faddd232b5c736b2134ed08adcb6c.tar.xz | |
Fix errors on switching dimensions (#204)
* Fix errors on switching dimensions
* fix other tests
* clippy
* fix log feature in test_simulation
* fix chunks oops
Diffstat (limited to 'azalea-world/src')
| -rw-r--r-- | azalea-world/src/container.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<RwLock<Instance>> { 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)); |
