forked from nalc/awards
Fix eat
trigger to actually notify awards on item eat.
This commit is contained in:
parent
8a34ea8055
commit
9d98f950b8
@ -137,5 +137,5 @@ minetest.register_on_item_eat(function(_, _, itemstack, player, _)
|
|||||||
|
|
||||||
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_eat(player, itemname, itemstack:get_count())
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user