remove cached huds after end of game

This commit is contained in:
chmodsayshello 2022-10-08 15:59:32 +00:00
parent 491d2ed995
commit 4e98c5a5db
1 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ end)
arena_lib.on_end("the_bridge", function(arena, players, winners, spectators, is_forced)
restore_map(arena)
arena.huds = {}
end)
arena_lib.on_disable("the_bridge", function(arena, p_name)
@ -63,4 +64,4 @@ arena_lib.on_quit("the_bridge", function(arena, p_name, is_spectator, reason)
player = minetest.get_player_by_name(p_name)
player:hud_remove(arena.huds[p_name].blue)
player:hud_remove(arena.huds[p_name].red)
end)
end)