2015-12-18 17:36:12 +03:00
|
|
|
--local t = os.clock()
|
2018-03-09 02:24:00 +03:00
|
|
|
|
2015-06-09 15:04:57 +03:00
|
|
|
xdecor = {}
|
2015-08-19 12:02:22 +03:00
|
|
|
local modpath = minetest.get_modpath("xdecor")
|
2015-06-09 15:04:57 +03:00
|
|
|
|
2023-06-30 21:40:17 +03:00
|
|
|
dofile(modpath .. "/handlers/glasscut.lua")
|
2019-07-23 15:03:20 +03:00
|
|
|
dofile(modpath .. "/handlers/animations.lua")
|
|
|
|
dofile(modpath .. "/handlers/helpers.lua")
|
|
|
|
dofile(modpath .. "/handlers/nodeboxes.lua")
|
|
|
|
dofile(modpath .. "/handlers/registration.lua")
|
2016-02-12 17:00:44 +03:00
|
|
|
|
2019-07-23 15:03:20 +03:00
|
|
|
dofile(modpath .. "/src/nodes.lua")
|
|
|
|
dofile(modpath .. "/src/recipes.lua")
|
2017-08-28 08:41:14 +03:00
|
|
|
|
2018-03-08 23:12:21 +03:00
|
|
|
local subpart = {
|
2017-08-28 08:41:14 +03:00
|
|
|
"chess",
|
|
|
|
"cooking",
|
|
|
|
"enchanting",
|
|
|
|
"hive",
|
|
|
|
"itemframe",
|
|
|
|
"mailbox",
|
|
|
|
"mechanisms",
|
|
|
|
"rope",
|
2019-07-23 15:03:20 +03:00
|
|
|
"workbench",
|
2017-08-28 08:41:14 +03:00
|
|
|
}
|
|
|
|
|
2019-07-23 15:03:20 +03:00
|
|
|
for _, name in ipairs(subpart) do
|
|
|
|
local enable = minetest.settings:get_bool("enable_xdecor_" .. name)
|
2018-03-08 23:12:21 +03:00
|
|
|
if enable or enable == nil then
|
2019-07-23 15:03:20 +03:00
|
|
|
dofile(modpath .. "/src/" .. name .. ".lua")
|
2017-08-28 08:41:14 +03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-02-09 14:35:17 +03:00
|
|
|
--print(string.format("[xdecor] loaded in %.2f ms", (os.clock()-t)*1000))
|