From 98d9d20cd9beca32e459192abdfe49f1a524d131 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 27 Feb 2015 08:49:49 +0000 Subject: [PATCH] Support for hphunger --- food/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/food/init.lua b/food/init.lua index 0fa4123..aa4fc9e 100644 --- a/food/init.lua +++ b/food/init.lua @@ -106,6 +106,11 @@ function food.item_eat(amt) return diet.item_eat(amt) elseif minetest.get_modpath("hud") and hud and hud.item_eat then return hud.item_eat(amt) + elseif minetest.get_modpath("hphunger") then + if hphunger then + return hphunger.item_eat(amt) + else + return hunger.item_eat(amt) else return minetest.item_eat(amt) end