1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +02:00

Fixed subcontracting of food.item_eat by hbhunger.item_eat

- Tomato soup and orange juice aren't buggy anymore and restore hunger
 - Added farming:orange in hungerlist (I think that's what was implied in "orange and orange based items")
 - Fix for #153
This commit is contained in:
LeMagnesium
2015-07-31 20:27:29 +02:00
parent be6cd218ce
commit 793aac3a3a
2 changed files with 4 additions and 3 deletions

View File

@ -106,9 +106,9 @@ 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)
elseif minetest.get_modpath("hbhunger") then
if hbhunger then
return hbhunger.item_eat(amt)
else
return hunger.item_eat(amt)
end