1
0
mirror of https://gitlab.com/rubenwardy/awards.git synced 2024-11-14 06:30:28 +01:00

Fix eat trigger to actually notify awards on item eat.

This commit is contained in:
Beha 2020-04-04 15:35:14 -04:00
parent 8a34ea8055
commit 9d98f950b8

View File

@ -137,5 +137,5 @@ minetest.register_on_item_eat(function(_, _, itemstack, player, _)
local itemname = itemstack:get_name()
itemname = minetest.registered_aliases[itemname] or itemname
awards.notify_craft(player, itemname, itemstack:get_count())
awards.notify_eat(player, itemname, itemstack:get_count())
end)