Also wear out flint and steel when used on TNT

This commit is contained in:
Wuzzy 2017-02-01 16:45:49 +01:00
parent 26d519065a
commit 77e9502945
1 changed files with 2 additions and 1 deletions

View File

@ -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
end
end
return itemstack
end
end
end,
})