Fix TNT ignition

This commit is contained in:
Wuzzy 2017-01-16 14:59:16 +01:00
parent 674a989061
commit cc119a717c
3 changed files with 22 additions and 22 deletions

View file

@ -289,9 +289,13 @@ minetest.register_tool("default:flint_and_steel", {
},
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type == "node" then
if minetest.get_node(pointed_thing.under).name == "tnt:tnt" then
tnt.ignite(pointed_thing.under)
else
set_fire(pointed_thing)
itemstack:add_wear(66000/65) -- 65 uses
return itemstack
itemstack:add_wear(66000/65) -- 65 uses
return itemstack
end
end
end,
})