Update functions.lua

This commit is contained in:
minefaco 2020-11-18 19:58:32 -05:00 committed by GitHub
parent 6cd4698b7a
commit acec2b70fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,7 +44,7 @@ function stripped_tree.register_axes(mod_n,axe_types)
local old_node = minetest.get_node(pos)
local stripped =mod_name..":".."stripped_"..node_name
minetest.swap_node(pos,{name=stripped,param2=old_node.param2})
itemstack:add_wear(65535 / 299) -- 300 uses
--itemstack:add_wear(65535 / 299) this is not useful at moment.
if not creative_mode then
local inv = user:get_inventory()