fixed issues after ending in colorjump
This commit is contained in:
+6
@@ -38,6 +38,7 @@ public class ColorJump extends StatelessGame {
|
||||
private Block blockLastRound;
|
||||
private double roundTime = 5;
|
||||
private final double multiplierNextRoundTime = 0.9;
|
||||
private boolean isAfterRunning = false;
|
||||
|
||||
public ColorJump() {
|
||||
super(Dimension.THE_END.key, "ColorJump", new LastWinsScore());
|
||||
@@ -63,6 +64,7 @@ public class ColorJump extends StatelessGame {
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
this.isAfterRunning = true;
|
||||
this.nextRound();
|
||||
}
|
||||
|
||||
@@ -172,5 +174,9 @@ public class ColorJump extends StatelessGame {
|
||||
this.getScore().insertResult(player);
|
||||
player.setGameMode(GameMode.SPECTATOR);
|
||||
}
|
||||
if(this.isAfterRunning && !this.isRunning) {
|
||||
player.setGameMode(GameMode.SPECTATOR);
|
||||
player.teleport(this.getSpawn());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user