remove cached huds after end of game
This commit is contained in:
parent
491d2ed995
commit
4e98c5a5db
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue