mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
e438b4f85f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user