Merge branch 'zesterer/small-fixes' into 'master'

Prevented towns destroying trees, rocks, other towns, etc.

See merge request veloren/veloren!1611
This commit is contained in:
Marcel 2020-12-11 20:33:58 +00:00
commit e438b4f85f

View File

@ -747,7 +747,16 @@ impl Settlement {
},
);
} else if z >= 0 {
if block.kind() != BlockKind::Water {
if [
BlockKind::Air,
BlockKind::Grass,
BlockKind::Earth,
BlockKind::Sand,
BlockKind::Snow,
BlockKind::Rock,
]
.contains(&block.kind())
{
let _ = vol.set(pos, Block::air(SpriteKind::Empty));
}
} else {