diff options
Diffstat (limited to 'script-beta/vm/getLibrary.lua')
-rw-r--r-- | script-beta/vm/getLibrary.lua | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/script-beta/vm/getLibrary.lua b/script-beta/vm/getLibrary.lua index d2f88116..69280fd9 100644 --- a/script-beta/vm/getLibrary.lua +++ b/script-beta/vm/getLibrary.lua @@ -71,13 +71,12 @@ local function checkNode(source) end local function getLibrary(source) - local lib = checkStdLibrary(source) - if lib then - return lib - end - return checkNode(source) or vm.eachRef(source, function (info) - return checkStdLibrary(info.source) or checkNode(info.source) - end) + return checkNode(source) + or checkStdLibrary(source) + or vm.eachRef(source, function (info) + return checkStdLibrary(info.source) + or checkNode(info.source) + end, 100) end function vm.getLibrary(source) |