summaryrefslogtreecommitdiff
path: root/server-beta/src/core/getglobal.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/core/getglobal.lua')
-rw-r--r--server-beta/src/core/getglobal.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/server-beta/src/core/getglobal.lua b/server-beta/src/core/getglobal.lua
index 2c48ca76..72d208a5 100644
--- a/server-beta/src/core/getglobal.lua
+++ b/server-beta/src/core/getglobal.lua
@@ -15,7 +15,7 @@ function m:def(source, callback)
if name == '_G' then
local parent = src.parent
if guide.getKeyName(parent) == key then
- self:childDef(parent, callback)
+ callback(parent, 'set')
end
elseif name == 'rawset' then
local t, k = self:callArgOf(src.parent)
@@ -39,7 +39,11 @@ function m:ref(source, callback)
if name == '_G' then
local parent = src.parent
if guide.getKeyName(parent) == key then
- self:childRef(parent, callback)
+ if parent.type:sub(1, 3) == 'set' then
+ callback(parent, 'set')
+ else
+ callback(parent, 'get')
+ end
end
elseif name == 'rawset' then
local t, k = self:callArgOf(src.parent)