diff options
| author | mat <git@matdoes.dev> | 2023-07-19 07:22:55 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-07-19 07:22:55 -0500 |
| commit | f0c7d6e8bf6a254a7332663f41cfd0ff97258f78 (patch) | |
| tree | d8792370f5f7d5fb8a89ab814bd355dc3a8e8074 | |
| parent | 0a83dc73b4c06b9300b8e16f8a30d512374262cd (diff) | |
| download | azalea-drasl-f0c7d6e8bf6a254a7332663f41cfd0ff97258f78.tar.xz | |
fix wrong names in a Debug and relax PartialChunkStorage::set_block_state
| -rwxr-xr-x | azalea-world/src/chunk_storage.rs | 2 | ||||
| -rw-r--r-- | 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<BlockState> { 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() } } |
