forked from mtcontrib/mobs_redo
added missing local
This commit is contained in:
2
api.lua
2
api.lua
@ -2413,7 +2413,7 @@ local count_mobs = function(pos, type)
|
||||
|
||||
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
|
||||
num = num + 1
|
||||
|
Reference in New Issue
Block a user