mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Also wear out flint and steel when used on TNT
This commit is contained in:
parent
26d519065a
commit
77e9502945
1 changed files with 2 additions and 1 deletions
|
@ -16,12 +16,13 @@ minetest.register_tool("mcl_fire:flint_and_steel", {
|
|||
if pointed_thing.type == "node" then
|
||||
if minetest.get_node(pointed_thing.under).name == "mcl_tnt:tnt" then
|
||||
tnt.ignite(pointed_thing.under)
|
||||
itemstack:add_wear(66000/65) -- 65 uses
|
||||
else
|
||||
mcl_fire.set_fire(pointed_thing)
|
||||
itemstack:add_wear(66000/65) -- 65 uses
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue