From fa8223d0b2aef7ada25eafac3a853bdf945b3089 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 13 Apr 2014 19:10:36 +0100 Subject: Release 2.2 - support for diet mod --- init.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index be33d8f..70a66ff 100644 --- a/init.lua +++ b/init.lua @@ -7,7 +7,7 @@ -- basic foods -- ===================================== -print("Food Mod - Version 2.1") +print("Food Mod - Version 2.2") -- Boilerplate to support localized strings if intllib mod is installed. local S @@ -23,7 +23,7 @@ food = { atsup = {}, df = {}, debug = false, - version = 2.1 + version = 2.2 } -- Checks for external content, and adds support @@ -82,7 +82,9 @@ end -- Checks for hunger mods to register food on function food.item_eat(amt) - if minetest.get_modpath("hud") then + if minetest.get_modpath("diet") then + return diet.item_eat(amt) + elseif minetest.get_modpath("hud") then return hud.item_eat(amt) else return minetest.item_eat(amt) -- cgit v1.2.3