0
0
Fork 0

Merge pull request 'Fix #1548' (#1) from MineClone2/MineClone2:master into master

Reviewed-on: NO11/MineClone2#1
This commit is contained in:
NO11 2021-04-13 14:07:51 +00:00
commit 1f4ac3d8e0
1 changed files with 4 additions and 0 deletions

View File

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