From 4776fa6fc58c27ddb7dd8c819b56e46fb1d91a1e Mon Sep 17 00:00:00 2001 From: Patbox <39821509+Patbox@users.noreply.github.com> Date: Sun, 10 Nov 2024 11:29:16 +0100 Subject: [PATCH] Update plasmid Signed-off-by: Patbox <39821509+Patbox@users.noreply.github.com> --- src/main/java/eu/pb4/destroythemonument/game/WaitingLobby.java | 2 +- .../eu/pb4/destroythemonument/game/logic/StandardGameLogic.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/pb4/destroythemonument/game/WaitingLobby.java b/src/main/java/eu/pb4/destroythemonument/game/WaitingLobby.java index 2bb579f..f7ffb00 100644 --- a/src/main/java/eu/pb4/destroythemonument/game/WaitingLobby.java +++ b/src/main/java/eu/pb4/destroythemonument/game/WaitingLobby.java @@ -123,7 +123,7 @@ private ActionResult onUseItem(ServerPlayerEntity player, Hand hand) { private GameResult requestStart() { Multimap playerTeams = HashMultimap.create(); - this.teamSelection.allocate(this.gameSpace.getPlayers().players(), playerTeams::put); + this.teamSelection.allocate(this.gameSpace.getPlayers().participants(), playerTeams::put); switch (this.config.gamemode()) { case "standard": StandardGameLogic.open(this.gameSpace, this.map, this.config, playerTeams, this.participants, this.teams); diff --git a/src/main/java/eu/pb4/destroythemonument/game/logic/StandardGameLogic.java b/src/main/java/eu/pb4/destroythemonument/game/logic/StandardGameLogic.java index c3e4307..af807a0 100644 --- a/src/main/java/eu/pb4/destroythemonument/game/logic/StandardGameLogic.java +++ b/src/main/java/eu/pb4/destroythemonument/game/logic/StandardGameLogic.java @@ -67,7 +67,7 @@ public void setupGame(GameActivity game, GameMap map, GameConfig config, Multima protected void maybeEliminate(TeamData teamData) { if (teamData.aliveMonuments.size() <= 0) { - for (ServerPlayerEntity player : this.gameSpace.getPlayers().players()) { + for (ServerPlayerEntity player : this.gameSpace.getPlayers().participants()) { PlayerData dtmPlayer = this.participants.get(PlayerRef.of(player)); if (dtmPlayer != null && dtmPlayer.teamData == teamData) { player.changeGameMode(GameMode.SPECTATOR);