From efe8db3717d272fcf1681f107a7ce6e8bcca9627 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Thu, 27 Oct 2016 09:15:05 +0200 Subject: [PATCH] fix warning about unassigned global variable --- init.lua | 3 ++- modutils.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 80ea92c..4f6d57a 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,6 @@ -dofile(minetest.get_modpath("carpets").."/carpet_api.lua") +carpets = {} +dofile(minetest.get_modpath("carpets").."/carpet_api.lua") dofile(minetest.get_modpath("carpets").."/modutils.lua") depmod = carpets.modutils.get_depmod("carpets") diff --git a/modutils.lua b/modutils.lua index d8e277f..76341e1 100644 --- a/modutils.lua +++ b/modutils.lua @@ -14,6 +14,7 @@ else envroot = _G[currentmod] end -- framework stuff done. -- Now the tool +---------------------------------------- envroot.modutils = {}