From 4917da7ec606296c630b849cb73a41dd6beb9081 Mon Sep 17 00:00:00 2001 From: minefaco <63024226+minefaco@users.noreply.github.com> Date: Mon, 16 Nov 2020 21:39:32 -0500 Subject: [PATCH] Fixed luacheck warning --- functions.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.lua b/functions.lua index 3b565a5..86b6cf7 100644 --- a/functions.lua +++ b/functions.lua @@ -42,7 +42,8 @@ function chisel_tree.register_axes(mod_n,axe_types) if has_stripped then local old_node = minetest.get_node(pos) - minetest.swap_node(pos, {name = mod_name..":".."stripped_"..node_name, param2 = old_node.param2}) + local stripped =mod_name..":".."stripped_"..node_name + minetest.swap_node(pos,{name=stripped,param2=old_node.param2}) itemstack:add_wear(65535 / 299) -- 300 uses if not creative_mode then