Deleting extra grasses on the air

This commit is contained in:
MohammadHasanKargar 2021-10-15 19:09:36 +03:30
parent df64cc9494
commit c82b3859e0

View File

@ -736,7 +736,7 @@ impl Settlement {
{ {
let diff = (surface_z - land_surface_z).abs(); let diff = (surface_z - land_surface_z).abs();
for z in -8 - diff..4 + diff { for z in -8 - diff..8 + diff {
let pos = Vec3::new(offs.x, offs.y, surface_z + z); let pos = Vec3::new(offs.x, offs.y, surface_z + z);
let block = if let Ok(&block) = vol.get(pos) { let block = if let Ok(&block) = vol.get(pos) {
// TODO: Figure out whether extra filters are needed. // TODO: Figure out whether extra filters are needed.