mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 10:10:21 +01:00
added missing local
This commit is contained in:
parent
954565efa2
commit
e592c18af6
2
api.lua
2
api.lua
@ -2413,7 +2413,7 @@ local count_mobs = function(pos, type)
|
|||||||
|
|
||||||
if not objs[n]:is_player() then
|
if not objs[n]:is_player() then
|
||||||
|
|
||||||
obj = objs[n]:get_luaentity()
|
local obj = objs[n]:get_luaentity()
|
||||||
|
|
||||||
if obj and obj.name and obj.name == type then
|
if obj and obj.name and obj.name == type then
|
||||||
num = num + 1
|
num = num + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user