Suppression de minetest.register_on_craft

Cette fonction a été réécrite dans nalc_awards
This commit is contained in:
sys4-fr 2019-03-02 19:49:08 +01:00
parent 1ffa8f10ac
commit 54db6ce0c0

View File

@ -109,15 +109,15 @@ awards.register_trigger("craft", {
end,
key_is_item = true,
})
minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv)
if not player or itemstack:is_empty() then
return
end
local itemname = itemstack:get_name()
itemname = minetest.registered_aliases[itemname] or itemname
awards.notify_craft(player, itemname, itemstack:get_count())
end)
--minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv)
-- if not player or itemstack:is_empty() then
-- return
-- end
--
-- local itemname = itemstack:get_name()
-- itemname = minetest.registered_aliases[itemname] or itemname
-- awards.notify_craft(player, itemname, itemstack:get_count())
--end)
awards.register_trigger("eat", {