Fix variable == nil error.
This commit is contained in:
parent
b2c104d53a
commit
a1a5fb0a7f
5 changed files with 135 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
dofile(fun_caves.path .. "/castles.lua")
|
||||
|
||||
local deco_depth = -30 -- place cave stuff this far beneath the surface
|
||||
local light_depth = -13 -- depth above which to place corals/sea plants
|
||||
local water_level = 1
|
||||
|
@ -55,6 +57,13 @@ fun_caves.decogen = function(minp, maxp, data, p2data, area, node, heightmap, bi
|
|||
end
|
||||
end
|
||||
|
||||
if false and underzone and underzone.name == 'Caina' and math.abs(minp.y - underzone.floor) < math.abs(minp.y - underzone.ceiling) then
|
||||
local write, writep2 = fun_caves.ice_castle(minp, maxp, data, p2data, area, node, heightmap, biomemap, biome_ids, underzone)
|
||||
if write then
|
||||
return write, writep2
|
||||
end
|
||||
end
|
||||
|
||||
local undersea = fun_caves.underzones['Styx'].sealevel
|
||||
|
||||
local write = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue