aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraivMan <gamemaster370.carver@gmail.com>2022-12-03 23:11:17 -0600
committerCraivMan <gamemaster370.carver@gmail.com>2022-12-03 23:11:17 -0600
commit3f407f0be20c1239c6f8e6ff75a06fbd2416bd02 (patch)
treea25741f2ac41993f8f2301d11dd6a715e8c82d3a
parented5ad3cf5b1d795e76eb19bf3f1991053d17206d (diff)
downloadTumble-3f407f0be20c1239c6f8e6ff75a06fbd2416bd02.tar.gz
Tumble-3f407f0be20c1239c6f8e6ff75a06fbd2416bd02.tar.bz2
Tumble-3f407f0be20c1239c6f8e6ff75a06fbd2416bd02.zip
Added round logic (PT 1)
I did this all (100% without Myles)
-rw-r--r--src/main/java/com/MylesAndMore/tumble/Game.java6
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.