CRASHFIX: when removing HUD caused by the spectate mode

master
Giov4 2021-02-14 00:11:45 +01:00
parent 3dbc09b80f
commit 56249711c8
1 changed files with 2 additions and 0 deletions

View File

@ -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)