From 08beecbc29ff9a2c824a665a6002ce9bae08d63f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 23 May 2017 18:56:49 +0200 Subject: [PATCH] No longer regen health at 0.5s at full hunger bar --- mods/PLAYER/mcl_hunger/init.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/mods/PLAYER/mcl_hunger/init.lua b/mods/PLAYER/mcl_hunger/init.lua index ef681a10a6..7f9edd9883 100644 --- a/mods/PLAYER/mcl_hunger/init.lua +++ b/mods/PLAYER/mcl_hunger/init.lua @@ -254,13 +254,10 @@ minetest.register_globalstep(function(dtime) local h = tonumber(mcl_hunger.get_hunger(player)) local hp = player:get_hp() if timer > 0.5 then - -- Quick heal (every 0.5s) - if h >= 20 and hp > 0 and hp < 20 then - -- +1 HP, +exhaustion - player:set_hp(hp+1) - mcl_hunger.exhaust(name, mcl_hunger.EXHAUST_REGEN) - -- Slow heal, and hunger damage (every 4s) - elseif timerMult == 0 then + -- Slow health regeneration, and hunger damage (every 4s). + -- Regeneration rate based on tutorial video . + -- Minecraft Wiki seems to be wrong in claiming that full hunger gives 0.5s regen rate. + if timerMult == 0 then if h >= 18 and hp > 0 and hp < 20 then -- +1 HP, +exhaustion player:set_hp(hp+1)