diff options
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/MylesAndMore/tumble/Game.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/MylesAndMore/tumble/Game.java b/src/main/java/com/MylesAndMore/tumble/Game.java index ccbbc55..67eedca 100644 --- a/src/main/java/com/MylesAndMore/tumble/Game.java +++ b/src/main/java/com/MylesAndMore/tumble/Game.java @@ -165,9 +165,9 @@ public class Game { public void playerDeath(@NotNull Player player) { player.setGameMode(GameMode.SPECTATOR); // If there are more than 2 players in the game, - if (gamePlayers.size() > 2) { - // remove that player (who just died) from the gamePlayersArray, effectively eliminating them, - gamePlayers.remove(player); + if (roundPlayers.size() > 2) { + // remove that player (who just died) from the roundPlayersArray, effectively eliminating them, + roundPlayers.remove(player); } // otherwise, the game must have two people left (and one just died), meaning it is over // This logic is so that it will not remove the last player standing from the list, so we know who the winner is. |