aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-07-19 07:22:55 -0500
committermat <git@matdoes.dev>2023-07-19 07:22:55 -0500
commitf0c7d6e8bf6a254a7332663f41cfd0ff97258f78 (patch)
treed8792370f5f7d5fb8a89ab814bd355dc3a8e8074
parent0a83dc73b4c06b9300b8e16f8a30d512374262cd (diff)
downloadazalea-drasl-f0c7d6e8bf6a254a7332663f41cfd0ff97258f78.tar.xz
fix wrong names in a Debug and relax PartialChunkStorage::set_block_state
-rwxr-xr-xazalea-world/src/chunk_storage.rs2
-rw-r--r--azalea-world/src/world.rs6
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()
}
}