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,
|
end,
|
||||||
key_is_item = true,
|
key_is_item = true,
|
||||||
})
|
})
|
||||||
minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv)
|
--minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv)
|
||||||
if not player or itemstack:is_empty() then
|
-- if not player or itemstack:is_empty() then
|
||||||
return
|
-- return
|
||||||
end
|
-- end
|
||||||
|
--
|
||||||
local itemname = itemstack:get_name()
|
-- local itemname = itemstack:get_name()
|
||||||
itemname = minetest.registered_aliases[itemname] or itemname
|
-- itemname = minetest.registered_aliases[itemname] or itemname
|
||||||
awards.notify_craft(player, itemname, itemstack:get_count())
|
-- awards.notify_craft(player, itemname, itemstack:get_count())
|
||||||
end)
|
--end)
|
||||||
|
|
||||||
|
|
||||||
awards.register_trigger("eat", {
|
awards.register_trigger("eat", {
|
||||||
|
Loading…
Reference in New Issue
Block a user