From eb80cceb8d47b78055f561f77633d97b4c3ed348 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 996637aa73..211cf50b04 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