aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/init.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-11-06 21:20:26 +0100
committerorwell96 <orwell@bleipb.de>2019-11-06 21:20:26 +0100
commita4efdc196c337ae2e5b4fa29c0eeda31a9489586 (patch)
treee870abce6d0cf080835157442b58c09714323849 /advtrains_luaautomation/init.lua
parent74f7233d216da5a37a36fd54be4d8d6a4a278c8b (diff)
downloadadvtrains-a4efdc196c337ae2e5b4fa29c0eeda31a9489586.tar.gz
advtrains-a4efdc196c337ae2e5b4fa29c0eeda31a9489586.tar.bz2
advtrains-a4efdc196c337ae2e5b4fa29c0eeda31a9489586.zip
atlatc: fix operation panel not in ndb, add warning when node is not found on queue run
Diffstat (limited to 'advtrains_luaautomation/init.lua')
-rw-r--r--advtrains_luaautomation/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_luaautomation/init.lua b/advtrains_luaautomation/init.lua
index 0257aef..75cf30a 100644
--- a/advtrains_luaautomation/init.lua
+++ b/advtrains_luaautomation/init.lua
@@ -3,7 +3,7 @@
-- Uses global table 'atlatc' (AdvTrains_LuaATC)
-- Boilerplate to support localized strings if intllib mod is installed.
-if minetest.get_modpath("intllib") then
+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