forked from mtcontrib/food
		
	Support for hphunger
This commit is contained in:
		| @@ -106,6 +106,11 @@ 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 | ||||||
|  | 		if hphunger then | ||||||
|  | 			return hphunger.item_eat(amt) | ||||||
|  | 		else | ||||||
|  | 			return hunger.item_eat(amt) | ||||||
| 	else | 	else | ||||||
| 		return minetest.item_eat(amt) | 		return minetest.item_eat(amt) | ||||||
| 	end | 	end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user