forked from LizzyFleckenstein03/Memeclone
Fix regressing causing eat effect for drinks
This commit is contained in:
parent
6518fa7599
commit
d241df3d1a
|
@ -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", {
|
||||
|
|
Loading…
Reference in New Issue