diff options
Diffstat (limited to 'worldedit/init.lua')
-rw-r--r-- | worldedit/init.lua | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/worldedit/init.lua b/worldedit/init.lua index aaf70ae..f3eb9bb 100644 --- a/worldedit/init.lua +++ b/worldedit/init.lua @@ -1,7 +1,14 @@ local path = minetest.get_modpath("worldedit")
-dofile(path .. "/manipulations.lua")
-dofile(path .. "/primitives.lua")
-dofile(path .. "/visualization.lua")
-dofile(path .. "/serialization.lua")
-dofile(path .. "/code.lua")
-dofile(path .. "/compatibility.lua")
\ No newline at end of file +
+local loadmodule = function(path)
+ return pcall(function()
+ dofile(path)
+ end)
+end
+
+loadmodule(path .. "/manipulations.lua")
+loadmodule(path .. "/primitives.lua")
+loadmodule(path .. "/visualization.lua")
+loadmodule(path .. "/serialization.lua")
+loadmodule(path .. "/code.lua")
+loadmodule(path .. "/compatibility.lua")
\ No newline at end of file |