From b75075a1350d5a828f6a2f48b6dc6823ac303f1e Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 23 Jun 2020 17:57:11 -0400 Subject: [PATCH] Correct ability to kill players with harm potions. --- 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 a2e7befc59..45900c4d51 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -314,7 +314,7 @@ function mcl_potions.healing_func(player, hp) if hp > 0 then player:set_hp(math.min(player:get_hp() + hp, player:get_properties().hp_max)) else - player:set_hp(math.max(player:get_hp() + hp, 1)) + player:set_hp(player:get_hp() + hp) end end