When someone gets eliminated, have their spectators spectate the executioner (if any)
This commit is contained in:
parent
c9baec1d15
commit
9867c5d34c
@ -497,7 +497,11 @@ function arena_lib.remove_player_from_arena(p_name, reason, xc_name)
|
||||
-- se ha abbandonato mentre aveva degli spettatori, li riassegno
|
||||
if arena_lib.is_player_spectated(p_name) then
|
||||
for sp_name, _ in pairs(arena_lib.get_player_spectators(p_name)) do
|
||||
arena_lib.find_and_spectate_player(sp_name)
|
||||
if reason == 1 and xc_name and minetest.get_player_by_name(xc_name) then
|
||||
arena_lib.spectate_target(mod, arena, sp_name, "player", xc_name)
|
||||
else
|
||||
arena_lib.find_and_spectate_player(sp_name)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user