spawn improvements

This commit is contained in:
Alexsandro Percy 2021-12-28 10:46:11 -03:00
parent 8b70d6cd7c
commit 4c5c44f41f

View File

@ -238,7 +238,7 @@ local function spawnstep(dtime)
local height, liquidflag = mobkit.get_terrain_height(pos2,32) local height, liquidflag = mobkit.get_terrain_height(pos2,32)
if areas then if areas then
local areasAtPos = areas:getAreasAtPos(pos2) local areasAtPos = areas:getAreasAtPos(pos)
for id, area in pairs(areasAtPos) do for id, area in pairs(areasAtPos) do
--minetest.chat_send_all(dump(area.name)) --minetest.chat_send_all(dump(area.name))
if area.name == "cemetery" or area.name == "Cemetery" or area.name == "zbd" then if area.name == "cemetery" or area.name == "Cemetery" or area.name == "zbd" then