Adjust Round logic to handle last game stage countdown gracefully

This commit is contained in:
akastijn 2026-06-27 23:00:13 +02:00
parent f9e00b04cc
commit 99bff5446d

View File

@ -121,7 +121,11 @@ public class Round {
startCountdown(duration, () -> {
GameStageHandler.handleStageChange(gameStage.getWorldBorderSize());
if (gameStageList.size() <= index + 1) {
startCountdown(Duration.ofMinutes(5), this::nextStage);
} else {
scheduleNextStage(index + 1);
}
});
}