diff options
Diffstat (limited to 'script-beta/vm/guideInterface.lua')
-rw-r--r-- | script-beta/vm/guideInterface.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/script-beta/vm/guideInterface.lua b/script-beta/vm/guideInterface.lua index d223f2e6..26d4bd4c 100644 --- a/script-beta/vm/guideInterface.lua +++ b/script-beta/vm/guideInterface.lua @@ -96,6 +96,13 @@ function vm.interface.index(obj) end local tp = obj.type + if tp == 'getglobal' and obj.node.special == '_G' then + obj = library.global[obj[1]] + if not obj then + return nil + end + tp = obj.type + end local lib = library.object[tp] if lib then return lib.fields |