]> git.lizzy.rs Git - xdecor.git/blob - init.lua
Fix style issues with previous commit
[xdecor.git] / init.lua
1 --local t = os.clock()
2 xdecor = {}
3 local modpath = minetest.get_modpath("xdecor")
4
5 dofile(modpath.."/handlers/animations.lua")
6 dofile(modpath.."/handlers/helpers.lua")
7 dofile(modpath.."/handlers/nodeboxes.lua")
8 dofile(modpath.."/handlers/registration.lua")
9
10 dofile(modpath.."/src/alias.lua")
11 dofile(modpath.."/src/nodes.lua")
12 dofile(modpath.."/src/recipes.lua")
13
14 local subpart = {
15         "chess",
16         "cooking",
17         "enchanting",
18         "hive",
19         "itemframe",
20         "mailbox",
21         "mechanisms",
22         "rope",
23         "workbench"
24 }
25
26 for _, name in pairs(subpart) do
27         local enable = minetest.settings:get_bool("enable_xdecor_"..name)
28         if enable or enable == nil then
29                 dofile(modpath.."/src/"..name..".lua")
30         end
31 end
32
33 --print(string.format("[xdecor] loaded in %.2f ms", (os.clock()-t)*1000))