mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-14 00:14:52 +09:00
Change to role.assign
This commit is contained in:
1 parent
00e741937d
commit
ad94a41702
3 files changed
+6
-6
No files matched your search
@@ -195,7 +195,6 @@ 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(_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,
|
||||
|
||||
Reference in new issue
Block a user