no spawn of wolf/deer in protected areas
This commit is contained in:
parent
e756f6d451
commit
63748fa99c
4
init.lua
4
init.lua
@ -166,9 +166,11 @@ local function spawnstep(dtime)
|
||||
if obj:is_player() then return end
|
||||
end
|
||||
--minetest.chat_send_all('spawnin '.. mobname ..' #deer:' .. dcnt)
|
||||
if not minetest.is_protected(pos2) then
|
||||
|
||||
if not minetest.is_protected(pos2,mobname) then
|
||||
minetest.add_entity(pos2,mobname) -- ok spawn it already damnit
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user