Limit abm calls further
parent
b0aad547a2
commit
eab37a1422
2
api.lua
2
api.lua
|
@ -318,7 +318,7 @@ function mobs:register_spawn(name, nodes, max_light, min_light, chance, active_o
|
||||||
mobs.spawning_mobs[name] = true
|
mobs.spawning_mobs[name] = true
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = nodes,
|
nodenames = nodes,
|
||||||
neighbors = nodes,
|
neighbors = {"air"},
|
||||||
interval = 30,
|
interval = 30,
|
||||||
chance = chance,
|
chance = chance,
|
||||||
action = function(pos, node, _, active_object_count_wider)
|
action = function(pos, node, _, active_object_count_wider)
|
||||||
|
|
Loading…
Reference in New Issue