forked from mtcontrib/mobs_redo
added spawner entity check
This commit is contained in:
parent
e90369ee21
commit
7b0a1cf233
@ -171,7 +171,8 @@ minetest.register_abm({
|
||||
pos2.y = pos2.y + 0.5
|
||||
|
||||
-- only if light levels are within range
|
||||
if lig >= mlig and lig <= xlig then
|
||||
if lig >= mlig and lig <= xlig
|
||||
and minetest.registered_entities[mob] then
|
||||
minetest.add_entity(pos2, mob)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user