mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
[watershed] Add a check
This commit is contained in:
parent
dce4bbc89b
commit
9692792f84
@ -658,7 +658,7 @@ function watershed_chunkgen(x0, y0, z0, x1, y1, z1, area, data)
|
||||
local yrq = 79
|
||||
local qixyz = zrq * 6400 + yrq * 80 + xrq + 1 -- quantised 3D index
|
||||
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
|
||||
end
|
||||
stable[si] = 0
|
||||
|
Loading…
Reference in New Issue
Block a user