mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Also wear out flint and steel when used on TNT
This commit is contained in:
parent
26d519065a
commit
77e9502945
@ -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 New Issue
Block a user