From a493a51f7c696f90c1593d9a8d8d8a1d93bacb8a Mon Sep 17 00:00:00 2001 From: whosit Date: Sun, 30 Mar 2025 21:47:26 +0300 Subject: [PATCH] fix some luacheck warnings --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 94b67ec..f166137 100644 --- a/init.lua +++ b/init.lua @@ -116,7 +116,7 @@ oir(radius) -- return iterator for objects around you {""}, { __index = _G, - __newindex = function(t, k, v) + __newindex = function(_t, k, v) if _G[k] then core.chat_send_player(player_name, orange_fmt("* Overwriting global: %s", dump(k))) else @@ -187,7 +187,7 @@ oir(radius) -- return iterator for objects around you end, }, { - __index = function(self, key) + __index = function(_self, key) -- we give warnings on accessing undeclared var because it's likely a typo local res = rawget(_G, key) if res == nil then