Merge pull request #20 from Gael-de-Sailly/mobs_fix

Fix issue about mobs spawning in fortress
This commit is contained in:
Duane Robertson 2016-06-14 09:18:20 -05:00 committed by GitHub
commit cd42c129c3

View file

@ -50,7 +50,8 @@ minetest.register_globalstep(function(dtime)
local minp = vector.subtract(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
for _, mob in pairs(minetest.luaentities) do
if mob.health and mob.started_in_fortress then