mirror of
https://github.com/minefaco/stripped_tree.git
synced 2024-07-04 15:05:17 +02:00
Update init.lua
This commit is contained in:
parent
f49e2d4ccb
commit
f35bb82dd6
7
init.lua
7
init.lua
@ -46,9 +46,9 @@ if stripped_tree.ENABLE_CHISEL then
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local node = minetest.get_node(pos).name
|
local node = minetest.get_node(pos).name
|
||||||
local mod_name, node_name = unpack(node:split(":"))
|
local mod_name, node_name = unpack(node:split(":"))
|
||||||
local has_stripped = minetest.registered_nodes[mod_name..":".."stripped_"..node_name]
|
local has_stripped = minetest.registered_nodes[mod_name..":".."stripped_"..node_name]
|
||||||
|
|
||||||
if has_stripped then
|
if has_stripped then
|
||||||
local stripped = mod_name..":".."stripped_"..node_name
|
local stripped = mod_name..":".."stripped_"..node_name
|
||||||
@ -62,7 +62,6 @@ if stripped_tree.ENABLE_CHISEL then
|
|||||||
else
|
else
|
||||||
minetest.add_item(pos, "default:tree_bark")
|
minetest.add_item(pos, "default:tree_bark")
|
||||||
end
|
end
|
||||||
|
|
||||||
itemstack:add_wear(65535 / 299) -- 300 uses
|
itemstack:add_wear(65535 / 299) -- 300 uses
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user