From c6951a6229a10ba64ca325124dcb8c6c135b22b6 Mon Sep 17 00:00:00 2001 From: MysticTempest Date: Sun, 6 Nov 2022 04:53:36 -0600 Subject: [PATCH] Re-fix health icon showing in Spectator mode on player re-join. --- mods/ITEMS/mcl_potions/functions.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index c7291e53b..850ddbf54 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -24,7 +24,12 @@ if file ~= nil then end local function potions_set_hudbar(player) - if hardcore_world then + local meta = player:get_meta() + + if hardcore_world and meta:get_int("dead") == 1 then + + hb.change_hudbar(player, "health", nil, nil, "blank.png", nil, "hudbars_bar_health.png") + elseif hardcore_world then if EF.poisoned[player] and EF.regenerating[player] then hb.change_hudbar(player, "health", nil, nil, "hbhunger_icon_regen_poison_hardcore.png", nil, "hudbars_bar_health.png")