fix crash

This commit is contained in:
chmodsayshello 2022-10-08 17:30:42 +00:00
parent 9de9de99db
commit bd3972df23
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ arena_lib.on_disable("the_bridge", function(arena, p_name)
end) end)
arena_lib.on_quit("the_bridge", function(arena, p_name, is_spectator, reason) arena_lib.on_quit("the_bridge", function(arena, p_name, is_spectator, reason)
if is_spectator then return end
player = minetest.get_player_by_name(p_name) player = minetest.get_player_by_name(p_name)
player:hud_remove(arena.huds[p_name].blue) player:hud_remove(arena.huds[p_name].blue)
player:hud_remove(arena.huds[p_name].red) player:hud_remove(arena.huds[p_name].red)