diff options
author | Tim <t4im@users.noreply.github.com> | 2015-02-05 09:47:37 +0100 |
---|---|---|
committer | Tim <t4im@users.noreply.github.com> | 2015-02-05 09:47:37 +0100 |
commit | 49e82a604bd947813ec93daeafcdfc188765c597 (patch) | |
tree | bc8e3b69d6b76eb2713ecd1952bc25d387fe9b94 /technic_worldgen | |
parent | 3fd53dfe95389e6e9d66f5fbd1b623c4092c06b7 (diff) |
supress undeclared variable access warnings in cases of intentional declaration checks
Diffstat (limited to 'technic_worldgen')
-rw-r--r-- | technic_worldgen/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua index 73e9fc7..bee44c4 100644 --- a/technic_worldgen/init.lua +++ b/technic_worldgen/init.lua @@ -1,8 +1,8 @@ local modpath = minetest.get_modpath("technic_worldgen") -technic = technic or {} +technic = rawget(_G, "technic") or {} technic.worldgen = {} -if intllib then +if rawget(_G, "intllib") then technic.worldgen.gettext = intllib.Getter() else technic.worldgen.gettext = function(s) return s end |