mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Correct ability to kill players with harm potions.
This commit is contained in:
parent
6d774acb53
commit
b75075a135
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue