fix some luacheck warnings

This commit is contained in:
whosit 2025-03-30 21:47:26 +03:00
parent a80c8eb66b
commit a493a51f7c

View File

@ -116,7 +116,7 @@ oir(radius) -- return iterator for objects around you
{"<proxy>"}, {"<proxy>"},
{ {
__index = _G, __index = _G,
__newindex = function(t, k, v) __newindex = function(_t, k, v)
if _G[k] then if _G[k] then
core.chat_send_player(player_name, orange_fmt("* Overwriting global: %s", dump(k))) core.chat_send_player(player_name, orange_fmt("* Overwriting global: %s", dump(k)))
else else
@ -187,7 +187,7 @@ oir(radius) -- return iterator for objects around you
end, end,
}, },
{ {
__index = function(self, key) __index = function(_self, key)
-- we give warnings on accessing undeclared var because it's likely a typo -- we give warnings on accessing undeclared var because it's likely a typo
local res = rawget(_G, key) local res = rawget(_G, key)
if res == nil then if res == nil then