From 37eff8b2d285edf5a643ca7161c7b8af3ad4d6f3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 11 Jul 2020 02:59:12 +0200 Subject: [PATCH] Fix breath bar that was broken by MT 5.3.0 --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 2b3fac5..92f264e 100644 --- a/init.lua +++ b/init.lua @@ -488,7 +488,7 @@ local function custom_hud(player) local breath_max = player:get_properties().breath_max local hide_breath if breath >= breath_max and hb.settings.autohide_breath == true then hide_breath = true else hide_breath = false end - hb.init_hudbar(player, "breath", math.min(breath, breath_max-1), breath_max-1, hide_breath or hide) + hb.init_hudbar(player, "breath", math.min(breath, breath_max), breath_max, hide_breath or hide) end end @@ -512,7 +512,7 @@ local function update_hud(player) hb.hide_hudbar(player, "breath") else hb.unhide_hudbar(player, "breath") - hb.change_hudbar(player, "breath", math.min(breath, breath_max-1), breath_max-1) + hb.change_hudbar(player, "breath", math.min(breath, breath_max), breath_max) end --health update_health(player)