mirror of
https://github.com/rubenwardy/food.git
synced 2025-10-28 17:45:19 +01:00
Support for hphunger
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user