summaryrefslogtreecommitdiff
path: root/concrete
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-02-05 09:47:37 +0100
committerTim <t4im@users.noreply.github.com>2015-02-05 09:47:37 +0100
commit49e82a604bd947813ec93daeafcdfc188765c597 (patch)
treebc8e3b69d6b76eb2713ecd1952bc25d387fe9b94 /concrete
parent3fd53dfe95389e6e9d66f5fbd1b623c4092c06b7 (diff)
supress undeclared variable access warnings in cases of intentional declaration checks
Diffstat (limited to 'concrete')
-rw-r--r--concrete/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/concrete/init.lua b/concrete/init.lua
index b41deb0..660624a 100644
--- a/concrete/init.lua
+++ b/concrete/init.lua
@@ -1,12 +1,12 @@
--Minetest 0.4.7 mod: concrete
--(c) 2013 by RealBadAngel <mk@realbadangel.pl>
-local technic = technic or {}
+local technic = rawget(_G, "technic") or {}
technic.concrete_posts = {}
-- Boilerplate to support localized strings if intllib mod is installed.
local S
-if intllib then
+if rawget(_G, "intllib") then
S = intllib.Getter()
else
S = function(s) return s end