diff --git a/mods/hudbars/init.lua b/mods/hudbars/init.lua index d67599a4..65d317e0 100755 --- a/mods/hudbars/init.lua +++ b/mods/hudbars/init.lua @@ -320,7 +320,7 @@ local function update_hud(player) if breath == 11 then hb.hide_hudbar(player, "breath") - else + elseif breath then hb.unhide_hudbar(player, "breath") hb.change_hudbar(player, "breath", math.min(breath, 10)) end