Fix typo when checking if hbhunger is installed

This commit is contained in:
asanetargoss 2015-06-28 14:05:58 -07:00
parent 24d05b7aed
commit 965973c013

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