Register cut nodes instantly
This commit is contained in:
parent
6ba25ff14c
commit
ec7410b4e7
1
init.lua
1
init.lua
@ -21,6 +21,7 @@ local subpart = {
|
|||||||
"mailbox",
|
"mailbox",
|
||||||
"mechanisms",
|
"mechanisms",
|
||||||
"rope",
|
"rope",
|
||||||
|
-- Workbench MUST be loaded last for the default 'cut node' registrations to work
|
||||||
"workbench",
|
"workbench",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -494,7 +494,7 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- Register default cuttable blocks
|
-- Register default cuttable blocks
|
||||||
minetest.register_on_mods_loaded(function()
|
do
|
||||||
local cuttable_nodes = {}
|
local cuttable_nodes = {}
|
||||||
|
|
||||||
-- Nodes allowed to be cut:
|
-- Nodes allowed to be cut:
|
||||||
@ -512,7 +512,7 @@ minetest.register_on_mods_loaded(function()
|
|||||||
local node = cuttable_nodes[i]
|
local node = cuttable_nodes[i]
|
||||||
workbench:register_cut(node)
|
workbench:register_cut(node)
|
||||||
end
|
end
|
||||||
end)
|
end
|
||||||
|
|
||||||
-- Special cuts for cushion block and cabinet
|
-- Special cuts for cushion block and cabinet
|
||||||
workbench:register_special_cut("xdecor:cushion_block", { slab = "xdecor:cushion" })
|
workbench:register_special_cut("xdecor:cushion_block", { slab = "xdecor:cushion" })
|
||||||
|
Loading…
Reference in New Issue
Block a user