]> git.lizzy.rs Git - xdecor.git/blob - init.lua
Fix "xpanes_space.png" texture not found (#125)
[xdecor.git] / init.lua
1 --local t = os.clock()
2
3 xdecor = {}
4 local modpath = minetest.get_modpath("xdecor")
5
6 dofile(modpath .. "/handlers/animations.lua")
7 dofile(modpath .. "/handlers/helpers.lua")
8 dofile(modpath .. "/handlers/nodeboxes.lua")
9 dofile(modpath .. "/handlers/registration.lua")
10
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 ipairs(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))