xdecor/init.lua

34 lines
740 B
Lua
Raw Permalink Normal View History

2015-12-18 06:36:12 -08:00
--local t = os.clock()
2018-03-08 15:24:00 -08:00
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
2019-07-23 05:03:20 -07:00
dofile(modpath .. "/handlers/animations.lua")
dofile(modpath .. "/handlers/helpers.lua")
dofile(modpath .. "/handlers/nodeboxes.lua")
dofile(modpath .. "/handlers/registration.lua")
2019-07-23 05:03:20 -07:00
dofile(modpath .. "/src/nodes.lua")
dofile(modpath .. "/src/recipes.lua")
2018-03-08 12:12:21 -08:00
local subpart = {
"chess",
"cooking",
"enchanting",
"hive",
"itemframe",
"mailbox",
"mechanisms",
"rope",
2019-07-23 05:03:20 -07:00
"workbench",
}
2019-07-23 05:03:20 -07:00
for _, name in ipairs(subpart) do
local enable = minetest.settings:get_bool("enable_xdecor_" .. name)
2018-03-08 12:12:21 -08:00
if enable or enable == nil then
2019-07-23 05:03:20 -07:00
dofile(modpath .. "/src/" .. name .. ".lua")
end
end
--print(string.format("[xdecor] loaded in %.2f ms", (os.clock()-t)*1000))