From 7a758082e2a780405bce237a2b9b00d09cd001a3 Mon Sep 17 00:00:00 2001 From: Wouters Dorian Date: Wed, 15 Jul 2015 02:31:56 +0200 Subject: [PATCH] Fix dumb condition in sandstone generation --- mods/watershed/init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mods/watershed/init.lua b/mods/watershed/init.lua index 0248c0b4..6d0dedde 100755 --- a/mods/watershed/init.lua +++ b/mods/watershed/init.lua @@ -467,9 +467,7 @@ function watershed_chunkgen(x0, y0, z0, x1, y1, z1, area, data) or (densityper >= 0.77 and densityper <= 0.79) or (densityper >= 0.84 and densityper <= 0.87) or (densityper >= 0.95 and densityper <= 0.98) then - if y < -80 then - data[vi] = c_sandstone - elseif y < -80 and y > -84 and math.random() > 0.5 then + if y > -84 and (y >= -80 or math.random() > 0.5) then data[vi] = c_sandstone else data[vi] = c_wsstone