added spawner entity check

This commit is contained in:
TenPlus1 2017-09-08 09:41:36 +01:00
parent e90369ee21
commit 7b0a1cf233

View File

@ -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