Support for hphunger

This commit is contained in:
rubenwardy 2015-02-27 08:49:49 +00:00
parent 93896c0824
commit 98d9d20cd9

View File

@ -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