From a12012d1c43f5b817433837aff633d7418cd5da2 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 14 Oct 2018 18:25:41 +0100 Subject: [PATCH] More Debug stuff --- FactorioSoftmodManager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FactorioSoftmodManager.lua b/FactorioSoftmodManager.lua index 0b968187..a168c986 100644 --- a/FactorioSoftmodManager.lua +++ b/FactorioSoftmodManager.lua @@ -195,7 +195,7 @@ Manager.global=setmetatable({__defaults={},__global={ for key,value in pairs(Global) do rawset(Global,key,nil) end for key,value in pairs(rawget(rawget(tbl,'__defaults'),tostring(module_name))) do rawset(Global,key,deepcopy(value)) end end - if game then game.write_file('global/'..game.tick,serpent.line(Global)) end + if game then game.write_file('global/'..game.tick,serpent.line(_G.global)) end return setmetatable(Global,{ __call=function(tbl,default) return Manager.global(default,tbl) end, __index=function(tbl,key) return rawget(Manager.global(),key) or moduleIndex[key] and Manager.global(key) end,