aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/MylesAndMore/tumble/Game.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/MylesAndMore/tumble/Game.java b/src/main/java/com/MylesAndMore/tumble/Game.java
index aa7f6d9..6b4a9ae 100644
--- a/src/main/java/com/MylesAndMore/tumble/Game.java
+++ b/src/main/java/com/MylesAndMore/tumble/Game.java
@@ -95,7 +95,7 @@ public class Game {
// The else statement is just in case the generator fails; this command will fail
if (generateLayers(type)) {
// Put all players in spectator to prevent them from getting kicked for flying
- setGamemode(gamePlayers, GameMode.SPECTATOR);
+ setGamemode(TumbleManager.getPlayersInLobby(), GameMode.SPECTATOR);
// Send all players from lobby to the game
scatterPlayers(TumbleManager.getPlayersInLobby());
} else {