fixed issues after ending in colorjump

This commit is contained in:
2026-08-10 18:16:03 +02:00
parent b175433701
commit 103bd23bf4
@@ -38,7 +38,6 @@ public class ColorJump extends StatelessGame {
private Block blockLastRound; private Block blockLastRound;
private double roundTime = 5; private double roundTime = 5;
private final double multiplierNextRoundTime = 0.9; private final double multiplierNextRoundTime = 0.9;
private boolean isAfterRunning = false;
public ColorJump() { public ColorJump() {
super(Dimension.THE_END.key, "ColorJump", new LastWinsScore()); super(Dimension.THE_END.key, "ColorJump", new LastWinsScore());
@@ -64,7 +63,6 @@ public class ColorJump extends StatelessGame {
@Override @Override
protected void onStart() { protected void onStart() {
this.isAfterRunning = true;
this.nextRound(); this.nextRound();
} }
@@ -174,7 +172,7 @@ public class ColorJump extends StatelessGame {
this.getScore().insertResult(player); this.getScore().insertResult(player);
player.setGameMode(GameMode.SPECTATOR); player.setGameMode(GameMode.SPECTATOR);
} }
if(this.isAfterRunning && !this.isRunning) { if(!this.isBeforeBeginning && !this.isRunning) {
player.setGameMode(GameMode.SPECTATOR); player.setGameMode(GameMode.SPECTATOR);
player.teleport(this.getSpawn()); player.teleport(this.getSpawn());
} }