Fixed hudbar crash on mp player join (hopefully)

This commit is contained in:
Blue Blancmange 2023-01-21 18:46:54 +00:00
parent cc4e4f9791
commit 2060cec699
1 changed files with 1 additions and 0 deletions

View File

@ -425,6 +425,7 @@ function hb.hide_hudbar(player, identifier)
local name = player:get_player_name()
local hudtable = hb.get_hudtable(identifier)
if hudtable == nil then return false end
if hudtable.hudstate[name] == nil then return false end
if hudtable.hudstate[name].hidden == true then return true end
if hb.settings.bar_type == "progress_bar" then
if hudtable.hudids[name].icon then