CRASHFIX: when removing HUD caused by the spectate mode
parent
3dbc09b80f
commit
56249711c8
|
@ -91,6 +91,8 @@ end
|
|||
function skywars.remove_HUD(arena, pl_name)
|
||||
local player = get_player_by_name(pl_name)
|
||||
|
||||
if not saved_huds[pl_name] then return end
|
||||
|
||||
for name, id in pairs(saved_huds[pl_name]) do
|
||||
if type(id) == "table" then id = id.id end
|
||||
player:hud_remove(id)
|
||||
|
|
Loading…
Reference in New Issue