Minetest-WorldEdit/worldedit/init.lua

22 lines
650 B
Lua
Raw Normal View History

local path = minetest.get_modpath(minetest.get_current_modname())
local loadmodule = function(path)
local results = {pcall(function()
return dofile(path)
end)}
if results[1] then --successfully loaded module
table.remove(results, 1) --remove status indicator
return unpack(results) --return all results
else --load error
print(results[2])
end
end
loadmodule(path .. "/manipulations.lua")
loadmodule(path .. "/primitives.lua")
loadmodule(path .. "/visualization.lua")
loadmodule(path .. "/serialization.lua")
loadmodule(path .. "/code.lua")
2013-04-28 19:08:09 +02:00
loadmodule(path .. "/compatibility.lua")
loadmodule(path .. "/queue.lua")