More speedups for //hollowsphere, //sphere, //hollowdome, //dome, //cylinder, better module loader, fix message in //volume.

This commit is contained in:
Anthony Zhang
2013-07-27 21:34:42 -04:00
parent 8b9054a1cc
commit faa4a7b065
3 changed files with 130 additions and 108 deletions

View File

@ -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")