Fix regressing causing eat effect for drinks

This commit is contained in:
Wuzzy 2017-05-21 00:08:31 +02:00
parent 6518fa7599
commit d241df3d1a

View file

@ -86,7 +86,7 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisontime, poiso
local pos = user:getpos()
-- player height
pos.y = pos.y + 1.5
local foodtype = minetest.get_item_group(itemname, "hunger")
local foodtype = minetest.get_item_group(itemname, "food")
if foodtype == 3 then
-- Item is a drink, only play drinking sound (no particle)
minetest.sound_play("survival_thirst_drink", {