Don't show vanished staff in Win Effects (PC-1108)

This commit is contained in:
ArcticZeroo 2017-10-21 20:55:20 -04:00 committed by Alexander Meech
parent 6cf76a200e
commit 9d343a8556

View File

@ -12,6 +12,7 @@ import java.util.Map.Entry;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
import java.util.stream.Collectors;
import net.minecraft.server.v1_8_R3.EntityItem;
import net.minecraft.server.v1_8_R3.PacketPlayInUseEntity;
@ -1520,7 +1521,7 @@ public abstract class Game extends ListenerComponent implements Lifetimed
List<Player> teamList = new ArrayList<>();
List<Player> otherList = new ArrayList<>();
teamList.addAll(team.GetPlacements(true));
otherList.addAll(UtilServer.getPlayersCollection());
otherList.addAll(UtilServer.getPlayersCollection().stream().filter((p) -> !getArcadeManager().isVanished(p)).collect(Collectors.toList()));
otherList.removeAll(teamList);
Player player = teamList.remove(0);
WinEffectManager.prePlay(this, player, teamList, otherList);