mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +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:
parent
be6cd218ce
commit
793aac3a3a
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user