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:
parent
0a83dc73b4
commit
f0c7d6e8bf
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue