Fix crash when eating

This commit is contained in:
Wuzzy 2017-02-17 03:12:46 +01:00
parent b8a2149995
commit dd05828281

View file

@ -79,7 +79,8 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisen, heal, sou
local hp = user:get_hp()
local pos = user:getpos()
pos.y = pos.y + item_drop_settings.player_collect_height
-- player height
pos.y = pos.y + 1.5
local foodtype = minetest.get_item_group(itemname, "food")
if foodtype == 3 then
-- Item is a drink, only play drinking sound (no particle)