1
0
mirror of https://gitlab.com/rubenwardy/awards.git synced 2024-11-10 12:40:17 +01:00

Merge branch 'fix_notify_eat' into 'master'

Fix `eat` trigger to actually notify awards on item eat.

See merge request rubenwardy/awards!81
This commit is contained in:
Beha 2020-04-04 20:15:01 +00:00
commit 31cbf7fe74

View File

@ -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)