From 77e95029458d1b68fa42d89b875299552dd62ec3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 1 Feb 2017 16:45:49 +0100 Subject: [PATCH] Also wear out flint and steel when used on TNT --- mods/mcl_fire/flint_and_steel.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/mcl_fire/flint_and_steel.lua b/mods/mcl_fire/flint_and_steel.lua index 7e0b2eb1f0..80af1f3ac5 100644 --- a/mods/mcl_fire/flint_and_steel.lua +++ b/mods/mcl_fire/flint_and_steel.lua @@ -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, })