mirror of
https://github.com/mt-mods/spacesuit.git
synced 2026-05-04 13:56:51 -06:00
fix missing hud data issue
This commit is contained in:
@@ -94,6 +94,10 @@ local update_hud = function(player, has_full_suit, armor_list)
|
|||||||
local playername = player:get_player_name()
|
local playername = player:get_player_name()
|
||||||
local hud_data = hud[playername]
|
local hud_data = hud[playername]
|
||||||
|
|
||||||
|
if not hud_data then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if has_full_suit then
|
if has_full_suit then
|
||||||
player:hud_change(hud_data.suit_incomplete, "text", "")
|
player:hud_change(hud_data.suit_incomplete, "text", "")
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user