Fixed win room would not sort player properly for solo games

This commit is contained in:
xGamingDudex 2016-05-15 23:29:58 +02:00
parent 7073ba4e6a
commit ca556f7846

View File

@ -1237,12 +1237,12 @@ public abstract class Game implements Listener
if(places != null && !places.isEmpty())
{
List<Player> teamList = new ArrayList<>();
List<Player> otherList = new ArrayList<>();
otherList.addAll(UtilServer.getPlayersCollection());
List<Player> nonTeamList = new ArrayList<>();
nonTeamList.addAll(places);
Player player = places.get(0);
otherList.remove(player);
nonTeamList.remove(player);
WinEffectManager.prePlay(this, player, teamList, otherList);
WinEffectManager.prePlay(this, player, teamList, nonTeamList);
Location loc = GetSpectatorLocation().clone().add(1000, 0, 1000);
loc.setY(200);