summaryrefslogtreecommitdiff
path: root/worldedit/init.lua
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2013-07-27 21:34:42 -0400
committerAnthony Zhang <azhang9@gmail.com>2013-07-27 21:34:42 -0400
commitfaa4a7b065bc3454bbdb5ea8af99b7c4c638b68e (patch)
tree328db122ff647d59a64741c41fff9b51bd86681a /worldedit/init.lua
parent8b9054a1cc0912385d95848dd0318e23f123c5f7 (diff)
More speedups for //hollowsphere, //sphere, //hollowdome, //dome, //cylinder, better module loader, fix message in //volume.
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")