Skip to content

Commit

Permalink
Fix "kicked for flying" bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MylesAndMore authored Feb 3, 2023
1 parent 7f87cfd commit 3d504f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/MylesAndMore/tumble/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ else if (Objects.equals(gameState, "running")) {
// 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 {
Expand Down

0 comments on commit 3d504f6

Please sign in to comment.