Don't clean up air blocks from the block map on chunk load (Fixes #34)
This commit is contained in:
parent
a0ae0465b0
commit
51ec66ec5c
|
@ -637,7 +637,7 @@ impl World {
|
|||
}
|
||||
|
||||
for entry in §ion.block_map {
|
||||
if entry.1 == 0 {
|
||||
if entry.1 == 0 && match entry.0 { block::Air{} => false, _ => true } {
|
||||
section.rev_block_map.remove(&entry.0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue