summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/matcher/vm.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua
index fbf9ac4b..3264bd18 100644
--- a/server/src/matcher/vm.lua
+++ b/server/src/matcher/vm.lua
@@ -800,6 +800,10 @@ function mt:createEnvironment()
end
end
end
+
+ -- 设置 _G 等于 _ENV
+ local g = self:getField(pValue, '_G')
+ self:setValue(g, pValue)
end
local function compile(ast)