mirror of
https://github.com/minefaco/stripped_tree.git
synced 2024-10-02 07:43:09 +02:00
Update functions.lua
This commit is contained in:
parent
6cd4698b7a
commit
acec2b70fb
@ -44,7 +44,7 @@ function stripped_tree.register_axes(mod_n,axe_types)
|
|||||||
local old_node = minetest.get_node(pos)
|
local old_node = minetest.get_node(pos)
|
||||||
local stripped =mod_name..":".."stripped_"..node_name
|
local stripped =mod_name..":".."stripped_"..node_name
|
||||||
minetest.swap_node(pos,{name=stripped,param2=old_node.param2})
|
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
|
if not creative_mode then
|
||||||
local inv = user:get_inventory()
|
local inv = user:get_inventory()
|
||||||
|
Loading…
Reference in New Issue
Block a user