1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

Fix dumb condition in sandstone generation

This commit is contained in:
Wouters Dorian 2015-07-15 02:31:56 +02:00
parent fd6b75e4b0
commit 7a758082e2

View File

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