From 54db6ce0c0fd88cd29861acdf98a163f593d469d Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sat, 2 Mar 2019 19:49:08 +0100 Subject: [PATCH] Suppression de minetest.register_on_craft MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cette fonction a été réécrite dans nalc_awards --- src/triggers.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/triggers.lua b/src/triggers.lua index 32a0b85..6644bd0 100644 --- a/src/triggers.lua +++ b/src/triggers.lua @@ -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", {