Use rightclick for fire charge/flint and steel

This commit is contained in:
Wuzzy 2017-03-11 02:51:31 +01:00
parent 697a7b6505
commit ba278bbc25
2 changed files with 2 additions and 2 deletions

@ -6,7 +6,7 @@ minetest.register_craftitem("mcl_fire:fire_charge", {
inventory_image = "mcl_fire_fire_charge.png",
liquids_pointable = false,
stack_max = 64,
on_use = function(itemstack, user, pointed_thing)
on_place = function(itemstack, user, pointed_thing)
if pointed_thing.type == "node" then
if minetest.get_node(pointed_thing.under).name == "mcl_tnt:tnt" then
tnt.ignite(pointed_thing.under)

@ -5,7 +5,7 @@ minetest.register_tool("mcl_fire:flint_and_steel", {
liquids_pointable = false,
stack_max = 1,
groups = { tool = 1 },
on_use = function(itemstack, user, pointed_thing)
on_place = function(itemstack, user, pointed_thing)
local idef = itemstack:get_definition()
minetest.sound_play(
"fire_flint_and_steel",