From dd05828281b2c4ce4d3e18ed9b9b9022d3aedc82 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 17 Feb 2017 03:12:46 +0100 Subject: [PATCH] Fix crash when eating --- mods/PLAYER/mcl_hunger/hunger.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_hunger/hunger.lua b/mods/PLAYER/mcl_hunger/hunger.lua index 6d3380bec7..8269af9f77 100644 --- a/mods/PLAYER/mcl_hunger/hunger.lua +++ b/mods/PLAYER/mcl_hunger/hunger.lua @@ -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)