Register cut nodes instantly

This commit is contained in:
Wuzzy 2024-09-19 10:54:05 +02:00
parent 6ba25ff14c
commit ec7410b4e7
2 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@ local subpart = {
"mailbox",
"mechanisms",
"rope",
-- Workbench MUST be loaded last for the default 'cut node' registrations to work
"workbench",
}

View File

@ -494,7 +494,7 @@ minetest.register_craft({
})
-- Register default cuttable blocks
minetest.register_on_mods_loaded(function()
do
local cuttable_nodes = {}
-- Nodes allowed to be cut:
@ -512,7 +512,7 @@ minetest.register_on_mods_loaded(function()
local node = cuttable_nodes[i]
workbench:register_cut(node)
end
end)
end
-- Special cuts for cushion block and cabinet
workbench:register_special_cut("xdecor:cushion_block", { slab = "xdecor:cushion" })