Don't clean up air blocks from the block map on chunk load (Fixes #34)

This commit is contained in:
Thinkofname 2016-04-08 01:18:08 +01:00
parent a0ae0465b0
commit 51ec66ec5c
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ impl World {
}
for entry in &section.block_map {
if entry.1 == 0 {
if entry.1 == 0 && match entry.0 { block::Air{} => false, _ => true } {
section.rev_block_map.remove(&entry.0);
}
}