Stop dungeon generation in underzones.

This commit is contained in:
Duane 2016-08-06 19:02:33 -05:00
parent f182dd902a
commit 678b025cb0
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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