From 112e3ff2555f1380a5125a9b09ef0a7fc81b053a Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sun, 25 Apr 2021 21:53:41 +0200 Subject: Fix undeclared globals warnings (#176) Reported by Vanessa Dannenberg --- advtrains_luaautomation/init.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'advtrains_luaautomation') diff --git a/advtrains_luaautomation/init.lua b/advtrains_luaautomation/init.lua index b6fe464..ab625b1 100644 --- a/advtrains_luaautomation/init.lua +++ b/advtrains_luaautomation/init.lua @@ -2,12 +2,8 @@ -- Lua automation features for advtrains -- Uses global table 'atlatc' (AdvTrains_LuaATC) --- Boilerplate to support localized strings if intllib mod is installed. -if intllib then - atltrans = intllib.Getter() -else - atltrans = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end -end +--TODO: re-add localization (if merging localization, discard this hunk please) +atltrans = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end --Privilege --Only trusted players should be enabled to build stuff which can break the server. -- cgit v1.2.3