mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-21 15:33:12 +09:00
Fixed SERVER missing __self
This commit is contained in:
1 parent
af7e8b37ed
commit
b5a34ddf91
1 file changed
+1
-1
@@ -7,7 +7,7 @@ local moduleIndex = require("/modules/index")
|
|||||||
local Manager = {}
|
local Manager = {}
|
||||||
|
|
||||||
-- this is a constant that is used to represent the server
|
-- this is a constant that is used to represent the server
|
||||||
SERVER = setmetatable({index=0,name='<server>',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='<server>',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
|
--- Setup for metatable of the Manager to force read only nature
|
||||||
-- @usage Manager() -- runs Manager.loadModdules()
|
-- @usage Manager() -- runs Manager.loadModdules()
|
||||||
|
|||||||
Reference in new issue
Block a user