Fix: full controller refactor

This commit is contained in:
2026-06-14 13:00:36 +02:00
parent 85f2dd9208
commit b11027a251
20 changed files with 175 additions and 189 deletions
@@ -258,8 +258,8 @@ public class ClientLauncherTUI {
gameReader.printAbove("Usage: details buildings | details events | details characters");
}
case "rematch" -> {
if (controller.miniModel == null
|| !controller.miniModel.currentState.getGameStage().equals(GameStages.ENDED)) {
if (controller.getMiniModel() == null
|| !controller.getMiniModel().currentState.getGameStage().equals(GameStages.ENDED)) {
System.out.println("Game not ended yet. Use 'quit' to disconnect.");
return false;
}