Fix stamina bar not reset correctly

This commit is contained in:
bri cassa 2021-04-08 00:00:29 +02:00
parent 8fe61c0bb6
commit 4245fe355f
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ local function change_stamina_max(player, value)
if val > new_max then
player:get_meta():set_float("hbsprint:stamina", new_max)
hb.change_hudbar(player, "stamina", new_max, new_max)
elseif val < new_max then
elseif val <= new_max then
hb.unhide_hudbar(player, "stamina")
hb.change_hudbar(player, "stamina", nil, new_max)
end