From cd0d2d22966c003eed17841ec81464b7bfaa06e5 Mon Sep 17 00:00:00 2001 From: Code-Sploit Date: Tue, 13 Apr 2021 13:57:45 +0000 Subject: [PATCH] Fix #1548 --- mods/ITEMS/mcl_potions/functions.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 996637aa..211cf50b 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -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