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

[watershed] Add a check

This commit is contained in:
LeMagnesium 2016-01-09 23:11:44 +01:00
parent dce4bbc89b
commit 9692792f84

View File

@ -658,7 +658,7 @@ function watershed_chunkgen(x0, y0, z0, x1, y1, z1, area, data)
local yrq = 79 local yrq = 79
local qixyz = zrq * 6400 + yrq * 80 + xrq + 1 -- quantised 3D index local qixyz = zrq * 6400 + yrq * 80 + xrq + 1 -- quantised 3D index
local qixz = zrq * 80 + xrq + 1 local qixz = zrq * 80 + xrq + 1
if math.abs(nvals_fissure[qixyz]) < nvals_humid[qixz] * 0.1 then if nvals_fissure[qixyz] and math.abs(nvals_fissure[qixyz]) < nvals_humid[qixz] * 0.1 then
data[vi] = c_wscloud data[vi] = c_wscloud
end end
stable[si] = 0 stable[si] = 0