Adjust Round logic to handle last game stage countdown gracefully
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user