From 49e82a604bd947813ec93daeafcdfc188765c597 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 5 Feb 2015 09:47:37 +0100 Subject: supress undeclared variable access warnings in cases of intentional declaration checks --- technic_chests/init.lua | 2 +- technic_chests/register.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'technic_chests') diff --git a/technic_chests/init.lua b/technic_chests/init.lua index 5fa96ff..7989912 100644 --- a/technic_chests/init.lua +++ b/technic_chests/init.lua @@ -4,7 +4,7 @@ modpath = minetest.get_modpath("technic_chests") -technic = technic or {} +technic = rawget(_G, "technic") or {} technic.chests = {} dofile(modpath.."/common.lua") diff --git a/technic_chests/register.lua b/technic_chests/register.lua index a6038ef..68ee6b1 100644 --- a/technic_chests/register.lua +++ b/technic_chests/register.lua @@ -1,7 +1,7 @@ local S -if intllib then +if rawget(_G, "intllib") then S = intllib.Getter() else S = function(s) return s end -- cgit v1.2.3