From 9d343a8556ebb9b79af457b355efbbc6449b0f95 Mon Sep 17 00:00:00 2001 From: ArcticZeroo Date: Sat, 21 Oct 2017 20:55:20 -0400 Subject: [PATCH] Don't show vanished staff in Win Effects (PC-1108) --- .../src/nautilus/game/arcade/game/Game.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java index e990fdc8d..0c7ab39a0 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java @@ -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 teamList = new ArrayList<>(); List 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);