spawn improvements
This commit is contained in:
parent
8b70d6cd7c
commit
4c5c44f41f
2
init.lua
2
init.lua
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user