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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'technic_chests/init.lua') 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") -- cgit v1.2.3