Correct ability to kill players with harm potions.

This commit is contained in:
Brandon 2020-06-23 17:57:11 -04:00
parent 6d774acb53
commit b75075a135

View file

@ -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