From b5a34ddf91080acf300c6fd257e2a3711c8fe3ef Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 30 Dec 2018 17:56:59 +0000 Subject: [PATCH] Fixed SERVER missing __self --- FactorioSoftmodManager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FactorioSoftmodManager.lua b/FactorioSoftmodManager.lua index 3b4ab4cf..d3640e9e 100644 --- a/FactorioSoftmodManager.lua +++ b/FactorioSoftmodManager.lua @@ -7,7 +7,7 @@ local moduleIndex = require("/modules/index") local Manager = {} -- this is a constant that is used to represent the server -SERVER = setmetatable({index=0,name='',online_time=0,afk_time=0,print=print,admin=true},{__index=function(tbl,key) if type(game.players[1][key]) == 'function' then return function() end else return nil end end}) +SERVER = setmetatable({index=0,name='',online_time=0,afk_time=0,print=print,admin=true,__self={}},{__index=function(tbl,key) if type(game.players[1][key]) == 'function' then return function() end else return nil end end}) --- Setup for metatable of the Manager to force read only nature -- @usage Manager() -- runs Manager.loadModdules()