mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Reviewed-on: https://git.minetest.land/NO11/MineClone2/pulls/1
This commit is contained in:
commit
1f4ac3d8e0
1 changed files with 4 additions and 0 deletions
|
@ -701,6 +701,10 @@ function mcl_potions.healing_func(player, hp)
|
|||
|
||||
local obj = player:get_luaentity()
|
||||
|
||||
if player:get_hp() == 0 then
|
||||
return
|
||||
end
|
||||
|
||||
if obj and obj.harmed_by_heal then hp = -hp end
|
||||
|
||||
if hp > 0 then
|
||||
|
|
Loading…
Reference in a new issue