aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/init.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-04-25 21:53:41 +0200
committerorwell96 <orwell@bleipb.de>2021-04-25 21:54:51 +0200
commit112e3ff2555f1380a5125a9b09ef0a7fc81b053a (patch)
tree40a757346fa5ac19dc10e3ccf27cfc9b6da131dd /advtrains_luaautomation/init.lua
parente04c21be78f6c915537f7dc8fdbf8110d7eadcd0 (diff)
downloadadvtrains-112e3ff2555f1380a5125a9b09ef0a7fc81b053a.tar.gz
advtrains-112e3ff2555f1380a5125a9b09ef0a7fc81b053a.tar.bz2
advtrains-112e3ff2555f1380a5125a9b09ef0a7fc81b053a.zip
Fix undeclared globals warnings (#176)
Reported by Vanessa Dannenberg
Diffstat (limited to 'advtrains_luaautomation/init.lua')
-rw-r--r--advtrains_luaautomation/init.lua8
1 files changed, 2 insertions, 6 deletions
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.