Adjust Round logic to handle last game stage countdown gracefully
This commit is contained in:
parent
f9e00b04cc
commit
99bff5446d
|
|
@ -121,7 +121,11 @@ public class Round {
|
|||
|
||||
startCountdown(duration, () -> {
|
||||
GameStageHandler.handleStageChange(gameStage.getWorldBorderSize());
|
||||
scheduleNextStage(index + 1);
|
||||
if (gameStageList.size() <= index + 1) {
|
||||
startCountdown(Duration.ofMinutes(5), this::nextStage);
|
||||
} else {
|
||||
scheduleNextStage(index + 1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user