From 508adfc281114608c784db8f83a3bdc0ef640a13 Mon Sep 17 00:00:00 2001 From: Gael-de-Sailly Date: Tue, 14 Jun 2016 14:47:08 +0200 Subject: [PATCH] Fix issue about mobs spawning in fortress --- abms.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abms.lua b/abms.lua index a5baaa5..ebc89ac 100644 --- a/abms.lua +++ b/abms.lua @@ -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