forked from mtcontrib/food
Merge pull request #22 from asanetargoss/master
Fix typo when checking if hbhunger is installed
This commit is contained in:
commit
f634d57d4a
@ -106,9 +106,9 @@ 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
|
elseif minetest.get_modpath("hbhunger") then
|
||||||
if hphunger then
|
if hbhunger then
|
||||||
return hphunger.item_eat(amt)
|
return hbhunger.item_eat(amt)
|
||||||
else
|
else
|
||||||
return hunger.item_eat(amt)
|
return hunger.item_eat(amt)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user