From 38a4e6ed89909f7acd03a3cfd562aa58b350721c Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 18 Jun 2020 19:44:29 -0400 Subject: [PATCH] Correct regeneration amount - 1/2 heart per cycle --- mods/ITEMS/mcl_potions/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 918156bb4..282e53e84 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -77,7 +77,7 @@ function mcl_potions.regeneration_func(player, factor, duration) for i=1,math.floor(duration/factor) do minetest.after(i*factor, function() if player:get_hp() < 20 then - player:set_hp(player:get_hp() + 0.5) + player:set_hp(player:get_hp() + 1) end end ) end