summaryrefslogtreecommitdiff
path: root/server/src/vm/global.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/global.lua')
-rw-r--r--server/src/vm/global.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/src/vm/global.lua b/server/src/vm/global.lua
index bb506ce9..b1b32505 100644
--- a/server/src/vm/global.lua
+++ b/server/src/vm/global.lua
@@ -13,9 +13,14 @@ return function (lsp)
global:rawSet(name, value)
end
end
+
+ local _G = global:getChild '_G'
+ global:eachChild(function (k, v)
+ _G:setChild(k, v)
+ end)
end
if lsp then
lsp.globalValue = global
end
- return global
+ return global:rawGet('_G')
end