Fix a bug that prevents log stripping with an axe

This commit is contained in:
2025-12-06 00:46:20 +01:00
parent 52c4bc4391
commit 880a60b7e0

View File

@@ -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})