summaryrefslogtreecommitdiff
path: root/server-beta/src/core/engineer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/core/engineer.lua')
-rw-r--r--server-beta/src/core/engineer.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/server-beta/src/core/engineer.lua b/server-beta/src/core/engineer.lua
index c5ed636c..6baa0d20 100644
--- a/server-beta/src/core/engineer.lua
+++ b/server-beta/src/core/engineer.lua
@@ -14,7 +14,9 @@ mt.type = 'engineer'
mt['local'] = function (self, source, mode, callback)
if mode == 'def' then
- callback(source, 'local')
+ if source.tag ~= 'self' then
+ callback(source, 'local')
+ end
if source.ref then
for _, ref in ipairs(source.ref) do
if ref.type == 'setlocal' then
@@ -22,6 +24,11 @@ mt['local'] = function (self, source, mode, callback)
end
end
end
+ if source.tag == 'self' then
+ local method = source.method
+ local node = method.node
+ self:search(node, node.type, mode, callback)
+ end
end
end
mt['getlocal'] = function (self, source, mode, callback)