Skip to content

Commit

Permalink
Update plasmid
Browse files Browse the repository at this point in the history
Signed-off-by: Patbox <[email protected]>
  • Loading branch information
Patbox committed Nov 10, 2024
1 parent 46cca9e commit 4776fa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private ActionResult onUseItem(ServerPlayerEntity player, Hand hand) {

private GameResult requestStart() {
Multimap<GameTeamKey, ServerPlayerEntity> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4776fa6

Please sign in to comment.