fixed issues after ending in colorjump
This commit is contained in:
1 parent
1a9b9f5fd2
commit
b175433701
1 file changed
+6
+6
@@ -38,6 +38,7 @@ 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());
|
||||||
@@ -63,6 +64,7 @@ public class ColorJump extends StatelessGame {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onStart() {
|
protected void onStart() {
|
||||||
|
this.isAfterRunning = true;
|
||||||
this.nextRound();
|
this.nextRound();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,5 +174,9 @@ 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) {
|
||||||
|
player.setGameMode(GameMode.SPECTATOR);
|
||||||
|
player.teleport(this.getSpawn());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user