mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Fix #1548
This commit is contained in:
parent
3077498a63
commit
cd0d2d2296
@ -701,6 +701,10 @@ function mcl_potions.healing_func(player, hp)
|
|||||||
|
|
||||||
local obj = player:get_luaentity()
|
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 obj and obj.harmed_by_heal then hp = -hp end
|
||||||
|
|
||||||
if hp > 0 then
|
if hp > 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user