forked from VoxeLibre/VoxeLibre
temporary hacky fix for crash on eating gapple with more than one player (no idea why this happens)
This commit is contained in:
parent
1bf73b95d3
commit
448932acfc
|
@ -444,7 +444,7 @@ function hb.unhide_hudbar(player, identifier)
|
|||
if not player_exists(player) then return false end
|
||||
local name = player:get_player_name()
|
||||
local hudtable = hb.get_hudtable(identifier)
|
||||
if hudtable == nil then return false end
|
||||
if hudtable == nil or hudtable.hudstates[name] == nil then return false end
|
||||
if hudtable.hudstate[name].hidden == false then return true end
|
||||
local value = hudtable.hudstate[name].value
|
||||
local max = hudtable.hudstate[name].max
|
||||
|
|
Loading…
Reference in New Issue