1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01: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

View File

@ -296,6 +296,7 @@ end
if minetest.get_modpath("farming") and farming.mod == "redo" then
overwrite("farming:bread", 5)
overwrite("farming:potato", 1)
overwrite("farming:orange", 4)
overwrite("farming:baked_potato", 5)
overwrite("farming:cucumber", 3)
overwrite("farming:tomato", 3)