Stop dungeon generation in underzones.
This commit is contained in:
parent
f182dd902a
commit
678b025cb0
2 changed files with 3 additions and 3 deletions
4
abms.lua
4
abms.lua
|
@ -438,8 +438,8 @@ minetest.register_abm({
|
|||
minetest.register_abm({
|
||||
nodenames = {"fun_caves:dungeon_wall_1"},
|
||||
neighbors = {'air'},
|
||||
interval = time_factor,
|
||||
chance = 100,
|
||||
interval = 1 * time_factor,
|
||||
chance = 1000,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
if not (pos and node) then
|
||||
|
|
|
@ -455,7 +455,7 @@ local function generate(p_minp, p_maxp, seed)
|
|||
end
|
||||
end
|
||||
|
||||
if fun_caves.dungeon then
|
||||
if not underzone and fun_caves.dungeon then
|
||||
local write_dungeon, write_p4
|
||||
write_dungeon, write_p4 = fun_caves.dungeon(minp, maxp, data, p2data, area, node, heightmap)
|
||||
if write_dungeon then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue