xdecor/init.lua

38 lines
784 B
Lua
Raw Normal View History

2015-12-18 06:36:12 -08:00
--local t = os.clock()
2015-06-09 05:04:57 -07:00
xdecor = {}
2015-08-19 02:02:22 -07:00
local modpath = minetest.get_modpath("xdecor")
2015-06-09 05:04:57 -07:00
-- Handlers.
dofile(modpath.."/handlers/animations.lua")
2016-02-04 07:02:28 -08:00
dofile(modpath.."/handlers/helpers.lua")
2015-06-09 05:04:57 -07:00
dofile(modpath.."/handlers/nodeboxes.lua")
dofile(modpath.."/handlers/registration.lua")
-- Node and others
dofile(modpath.."/src/alias.lua")
dofile(modpath.."/src/nodes.lua")
dofile(modpath.."/src/recipes.lua")
-- Elements
local submod = {
"chess",
"cooking",
"enchanting",
"hive",
"itemframe",
"mailbox",
"mechanisms",
"rope",
"workbench"
}
for _, name in ipairs(submod) do
local enable = not(minetest.settings:get_bool("disable_xdecor_"..name))
if enable then
dofile(modpath.."/src/"..name..".lua")
end
end
--print(string.format("[xdecor] loaded in %.2f ms", (os.clock()-t)*1000))