forked from Mirrorlandia_minetest/mod-sneeker
Fix finding number of active entities in world
This commit is contained in:
parent
84f51c893b
commit
b7f0f34a41
@ -47,9 +47,9 @@ minetest.register_abm({
|
||||
end
|
||||
|
||||
-- Get total count of sneekers in world
|
||||
local name, count
|
||||
for name in pairs(minetest.luaentities) do
|
||||
if name == sneeker.mob_name then
|
||||
local count = 0
|
||||
for I in pairs(minetest.luaentities) do
|
||||
if minetest.luaentities[I].name == sneeker.mob_name then
|
||||
count = count + 1
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user