mirror of
https://github.com/rubenwardy/food.git
synced 2024-12-23 00:10:18 +01:00
Support for hphunger
This commit is contained in:
parent
93896c0824
commit
98d9d20cd9
@ -106,6 +106,11 @@ function food.item_eat(amt)
|
|||||||
return diet.item_eat(amt)
|
return diet.item_eat(amt)
|
||||||
elseif minetest.get_modpath("hud") and hud and hud.item_eat then
|
elseif minetest.get_modpath("hud") and hud and hud.item_eat then
|
||||||
return hud.item_eat(amt)
|
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
|
else
|
||||||
return minetest.item_eat(amt)
|
return minetest.item_eat(amt)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user