From 2f40ba74d30a5ac0c6899c7433e683e4d76e243d Mon Sep 17 00:00:00 2001 From: wsor Date: Fri, 6 Nov 2020 10:59:57 -0500 Subject: [PATCH] fix luacheck warning + crash --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index faaf281..262093a 100644 --- a/init.lua +++ b/init.lua @@ -63,11 +63,11 @@ for _, axe_name in ipairs(axe_types) do local old_node = minetest.get_node(pos) minetest.swap_node(pos, {name = "default:stripped_"..n, param2 = old_node.param2}) itemstack:add_wear(65535 / 299) -- 300 uses - return itemstack - --if not minetest.check_player_privs(user, {creative=true}) then --(It works, but i think that this is not the better way for some reason) + --if not minetest.check_player_privs(user, {creative=true}) then --(It works, but i think that this is not the better way for some reason) local inv = user:get_inventory() inv:add_item("main", {name="default:tree_bark"}) --end + return itemstack end end