summaryrefslogtreecommitdiff
path: root/script-beta/vm
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/vm')
-rw-r--r--script-beta/vm/getLibrary.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script-beta/vm/getLibrary.lua b/script-beta/vm/getLibrary.lua
index 86f1ae58..eaeeafa3 100644
--- a/script-beta/vm/getLibrary.lua
+++ b/script-beta/vm/getLibrary.lua
@@ -60,6 +60,12 @@ function vm.getLibraryName(source, deep)
if lib then
return lib.name
end
+ local defs = vm.getDefs(source, deep)
+ for _, def in ipairs(defs) do
+ if def.special then
+ return def.special
+ end
+ end
return nil
end