Fix issue about mobs spawning in fortress

This commit is contained in:
Gael-de-Sailly 2016-06-14 14:47:08 +02:00
parent 09bbe2132b
commit 508adfc281

View file

@ -50,7 +50,8 @@ minetest.register_globalstep(function(dtime)
local minp = vector.subtract(pos, 0.5) local minp = vector.subtract(pos, 0.5)
local maxp = vector.add(pos, 0.5) local maxp = vector.add(pos, 0.5)
if dps_count % monster_delay == 0 then if fun_caves.fortress_spawns
and dps_count % monster_delay == 0 then
local mob_count = 0 local mob_count = 0
for _, mob in pairs(minetest.luaentities) do for _, mob in pairs(minetest.luaentities) do
if mob.health and mob.started_in_fortress then if mob.health and mob.started_in_fortress then