]> git.lizzy.rs Git - xdecor.git/blobdiff - init.lua
Workbench: Make custom cuttable nodes table global
[xdecor.git] / init.lua
index 4c6eb5f5b6fca16ab14a9468f867bfc777d1f153..629daee3e4d58c7dabc480cc2ab6f9dd7e8c1c35 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -1,9 +1,24 @@
+--local t = os.clock()
 xdecor = {}
-modpath = minetest.get_modpath("xdecor")
+local modpath = minetest.get_modpath("xdecor")
 
+-- Handlers.
+dofile(modpath.."/handlers/animations.lua")
+dofile(modpath.."/handlers/helpers.lua")
 dofile(modpath.."/handlers/nodeboxes.lua")
 dofile(modpath.."/handlers/registration.lua")
-dofile(modpath.."/crafts.lua")
-dofile(modpath.."/itemframes.lua")
-dofile(modpath.."/nodes.lua")
-dofile(modpath.."/workbench.lua")
+
+-- Item files.
+dofile(modpath.."/src/chess.lua")
+dofile(modpath.."/src/cooking.lua")
+dofile(modpath.."/src/craftitems.lua")
+dofile(modpath.."/src/enchanting.lua")
+dofile(modpath.."/src/hive.lua")
+dofile(modpath.."/src/itemframe.lua")
+dofile(modpath.."/src/mailbox.lua")
+dofile(modpath.."/src/mechanisms.lua")
+dofile(modpath.."/src/nodes.lua")
+dofile(modpath.."/src/recipes.lua")
+dofile(modpath.."/src/rope.lua")
+dofile(modpath.."/src/workbench.lua")
+--print(string.format("[xdecor] loaded in %.2f ms", (os.clock()-t)*1000))