From c9ac4229d958bb3cc271fd6ab4af99005d1c58b5 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 bf5ea3a..6463a15 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 = minetest.get_node(pos) + local old_node = minetest.get_node(pos).name + local mod_name, node_name = unpack(old_node:split(":")) local stripped = mod_name .. ":" .. "stripped_" .. node_name minetest.swap_node(pos, {name = stripped, param2 = old_node.param2})