From 880a60b7e00450fbaab8c0c079fb45743527495b Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 6 Dec 2025 00:46:20 +0100 Subject: [PATCH] Fix a bug that prevents log stripping with an axe --- functions.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.lua b/functions.lua index b314780..12180ad 100644 --- a/functions.lua +++ b/functions.lua @@ -17,7 +17,8 @@ end -- Function to swap nodes stripped_tree.swap_node = function(pos, user, in_creative_mode) - local old_node = core.get_node(pos) + local old_node = core.get_node(pos).name + local mod_name, node_name = unpack(old_node:split(":")) local stripped = mod_name .. ":" .. "stripped_" .. node_name core.swap_node(pos, {name = stripped, param2 = old_node.param2})