forked from mtcontrib/awards
Suppression de minetest.register_on_craft
Cette fonction a été réécrite dans nalc_awards
This commit is contained in:
parent
1ffa8f10ac
commit
54db6ce0c0
@ -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", {
|
||||
|
Loading…
Reference in New Issue
Block a user