better formatting and adjusted stone spawn rate

This commit is contained in:
Monty Marz 2020-08-23 17:05:04 +02:00 committed by Joshua Barretto
parent 6918020ed8
commit 86728c714f

View File

@ -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(