summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2015-02-27 08:49:49 +0000
committerrubenwardy <rubenwardy@gmail.com>2015-02-27 08:49:49 +0000
commit98d9d20cd9beca32e459192abdfe49f1a524d131 (patch)
treeb972ddc2dee855eb4dc665f910cf8a76de698403
parent93896c0824dab45f88d744eb4b47b96d9da64288 (diff)
Support for hphunger
-rw-r--r--food/init.lua5
1 files changed, 5 insertions, 0 deletions
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