1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 23:44:38 +00:00

fix wrong names in a Debug and relax PartialChunkStorage::set_block_state

This commit is contained in:
mat 2023-07-19 07:22:55 -05:00
commit f0c7d6e8bf
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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()
}
}