summaryrefslogtreecommitdiff
path: root/worldedit/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'worldedit/init.lua')
-rw-r--r--worldedit/init.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/worldedit/init.lua b/worldedit/init.lua
index f41d740..18e3490 100644
--- a/worldedit/init.lua
+++ b/worldedit/init.lua
@@ -1,9 +1,15 @@
local path = minetest.get_modpath(minetest.get_current_modname())
local loadmodule = function(path)
- return pcall(function()
+ local results = {pcall(function()
return dofile(path)
- end)
+ 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")