diff options
Diffstat (limited to 'azalea-world/src/world.rs')
| -rw-r--r-- | azalea-world/src/world.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs index a650f152..4b2b2a19 100644 --- a/azalea-world/src/world.rs +++ b/azalea-world/src/world.rs @@ -41,6 +41,12 @@ impl PartialInstance { entity_infos: PartialEntityInfos::new(owner_entity), } } + + /// Clears the internal references to chunks in the PartialInstance and + /// resets the view center. + pub fn reset(&mut self) { + self.chunks = PartialChunkStorage::new(self.chunks.chunk_radius); + } } /// An entity ID used by Minecraft. |
