Adjust pyramid caskets.
This commit is contained in:
parent
695316ea2a
commit
e2d29e0dd9
3 changed files with 18 additions and 34 deletions
10
mapgen.lua
10
mapgen.lua
|
@ -374,7 +374,6 @@ local function generate(p_minp, p_maxp, seed)
|
|||
end
|
||||
|
||||
local aster = false
|
||||
local true_casket
|
||||
if minp.y > 17200 then
|
||||
-- nop
|
||||
elseif minp.y > 11000 then
|
||||
|
@ -403,7 +402,7 @@ local function generate(p_minp, p_maxp, seed)
|
|||
write2, write_p2 = fun_caves.decogen(minp, maxp, data, p2data, area, node, heightmap, biomemap, biome_ids, underzone)
|
||||
write3 = fun_caves.treegen(minp, maxp, data, p2data, area, node)
|
||||
if not write3 then
|
||||
write4, write_p4, true_casket = fun_caves.pyramid(minp, maxp, data, p2data, area, biomemap, biome_ids, node, heightmap)
|
||||
write4, write_p4 = fun_caves.pyramid(minp, maxp, data, p2data, area, biomemap, biome_ids, node, heightmap)
|
||||
end
|
||||
if biomemap and not (write3 or write4) then
|
||||
local biome = biome_ids[biomemap[40*80+40]]
|
||||
|
@ -431,13 +430,6 @@ local function generate(p_minp, p_maxp, seed)
|
|||
end
|
||||
vm:update_liquids()
|
||||
vm:write_to_map()
|
||||
|
||||
if true_casket then
|
||||
vm:update_map()
|
||||
local meta = minetest.get_meta(true_casket)
|
||||
local id = meta:set_string('true', 'true')
|
||||
--print('* True casket at '..minetest.pos_to_string(true_casket))
|
||||
end
|
||||
end
|
||||
|
||||
-- Deal with memory issues. This, of course, is supposed to be automatic.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue