]> git.lizzy.rs Git - xdecor.git/blobdiff - init.lua
Don't crash on nil-player in can_dig and check the right players for attachment in...
[xdecor.git] / init.lua
index 38b587d698634c07abffd0d45910909561c4129b..4a194646cbdf2dd4ab57d5ff34b2a7a92b376d81 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -1,14 +1,26 @@
+--local t = os.clock()
 xdecor = {}
+local modpath = minetest.get_modpath("xdecor")
 
-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.."/building.lua")
-dofile(modpath.."/crafts.lua")
-dofile(modpath.."/itemframes.lua")
-dofile(modpath.."/furniture.lua")
-dofile(modpath.."/lighting.lua")
-dofile(modpath.."/misc.lua")
-dofile(modpath.."/storage.lua")
+-- Item files.
+dofile(modpath.."/chess.lua")
+dofile(modpath.."/cooking.lua")
+dofile(modpath.."/craftguide.lua")
+dofile(modpath.."/craftitems.lua")
+dofile(modpath.."/enchanting.lua")
+dofile(modpath.."/hive.lua")
+dofile(modpath.."/itemframe.lua")
+dofile(modpath.."/mailbox.lua")
+dofile(modpath.."/mechanisms.lua")
+dofile(modpath.."/nodes.lua")
+dofile(modpath.."/recipes.lua")
+dofile(modpath.."/rope.lua")
+dofile(modpath.."/workbench.lua")
+--print(string.format("[xdecor] loaded in %.2f ms", (os.clock()-t)*1000))
+