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