From f0c7d6e8bf6a254a7332663f41cfd0ff97258f78 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 19 Jul 2023 07:22:55 -0500 Subject: fix wrong names in a Debug and relax PartialChunkStorage::set_block_state --- azalea-world/src/chunk_storage.rs | 2 +- azalea-world/src/world.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs index c2a72ea2..61669cca 100755 --- a/azalea-world/src/chunk_storage.rs +++ b/azalea-world/src/chunk_storage.rs @@ -96,7 +96,7 @@ impl PartialChunkStorage { &self, pos: &BlockPos, state: BlockState, - chunk_storage: &mut ChunkStorage, + chunk_storage: &ChunkStorage, ) -> Option { if pos.y < chunk_storage.min_y || pos.y >= (chunk_storage.min_y + chunk_storage.height as i32) diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs index 4784880b..c88b0929 100644 --- a/azalea-world/src/world.rs +++ b/azalea-world/src/world.rs @@ -183,9 +183,9 @@ impl Instance { impl Debug for PartialInstance { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { - f.debug_struct("World") - .field("chunk_storage", &self.chunks) - .field("entity_storage", &self.entity_infos) + f.debug_struct("PartialInstance") + .field("chunks", &self.chunks) + .field("entity_infos", &self.entity_infos) .finish() } } -- cgit v1.2.3