From 8a0e861351ad3b4d6e8c2dda051aeddf7f09c3ed Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 9 Dec 2025 11:04:30 +0100 Subject: [PATCH] Use stripped_tree.swap_node with the chisel tool --- recipes.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/recipes.lua b/recipes.lua index c092819..8e4888b 100644 --- a/recipes.lua +++ b/recipes.lua @@ -46,19 +46,9 @@ if stripped_tree.enable_chisel then local has_stripped = core.registered_nodes[mod_name .. ":" .. "stripped_" .. node_name] if has_stripped then - local stripped = mod_name .. ":" .. "stripped_" .. node_name - core.swap_node(pos, {name = stripped}) + stripped_tree.swap_node(pos, user, core.settings:get_bool("creative_mode"), itemstack) if not core.settings:get_bool("creative_mode") then - local inv = user:get_inventory() - - -- Check for room in inv, if not, drop item - if inv:room_for_item("main", "default:tree_bark") then - inv:add_item("main", {name = "default:tree_bark"}) - else - core.add_item(pos, "default:tree_bark") - end - itemstack:add_wear(65535 / 299) -- 300 uses end