diff --git a/world/src/layer/mod.rs b/world/src/layer/mod.rs index a86d1fe1dc..060d0cff6b 100644 --- a/world/src/layer/mod.rs +++ b/world/src/layer/mod.rs @@ -323,13 +323,11 @@ pub fn apply_scatter_to<'a>( .unwrap_or(false) }) .and_then(|solid_start| { - (1..8) - .map(|z| solid_start + z) - .find(|z| { - vol.get(Vec3::new(offs.x, offs.y, alt + z)) - .map(|b| !b.is_solid()) - .unwrap_or(true) - }) + (1..8).map(|z| solid_start + z).find(|z| { + vol.get(Vec3::new(offs.x, offs.y, alt + z)) + .map(|b| !b.is_solid()) + .unwrap_or(true) + }) }) { let _ = vol.set(