summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/getLibrary.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/getLibrary.lua b/script/vm/getLibrary.lua
index b52f7240..16e2bd51 100644
--- a/script/vm/getLibrary.lua
+++ b/script/vm/getLibrary.lua
@@ -2,6 +2,9 @@
local vm = require 'vm.vm'
function vm.getLibraryName(source, deep)
+ if source.special then
+ return source.special
+ end
local defs = vm.getDefs(source, deep)
for _, def in ipairs(defs) do
if def.special then