minetest_x_bows/bin/lua-language-server-3.5.6-l.../script/vm/library.lua

16 lines
314 B
Lua
Raw Normal View History

2022-11-03 10:37:33 -05:00
---@class vm
local vm = require 'vm.vm'
function vm.getLibraryName(source)
if source.special then
return source.special
end
local defs = vm.getDefs(source)
for _, def in ipairs(defs) do
if def.special then
return def.special
end
end
return nil
end