diff options
Diffstat (limited to 'server-beta/src/core/getglobal.lua')
-rw-r--r-- | server-beta/src/core/getglobal.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server-beta/src/core/getglobal.lua b/server-beta/src/core/getglobal.lua index 5cac5bdd..46a9e7d2 100644 --- a/server-beta/src/core/getglobal.lua +++ b/server-beta/src/core/getglobal.lua @@ -16,6 +16,12 @@ function m:def(source, callback) if guide.getKeyName(parent) == key then self:childDef(parent, callback) end + elseif name == 'rawset' then + local t, k = self:callArgOf(src.parent) + if self:getSpecialName(t) == '_G' + and guide.getKeyName(k) == key then + callback(src.parent, 'set') + end end end) end @@ -44,7 +50,7 @@ function m:field(source, key, callback) if mode == 'get' then local parent = src.parent if key == guide.getKeyName(parent) then - self:childRef(parent) + self:childRef(parent, callback) end end end) |