diff --git a/frontend/src/main/java/cz/jzitnik/game/Chronos.java b/frontend/src/main/java/cz/jzitnik/game/Chronos.java index 923b9fb..ecbba87 100644 --- a/frontend/src/main/java/cz/jzitnik/game/Chronos.java +++ b/frontend/src/main/java/cz/jzitnik/game/Chronos.java @@ -151,7 +151,6 @@ public class Chronos { System.out.println("Stiskněte " + Cli.Colors.CYAN + "Enter" + Cli.Colors.RESET + " pro start hry..."); System.console().readLine(); - localData.saveData(); apiService.startGame(localData.getUserSecret(), localData.getGameKey()).execute(); } @@ -193,6 +192,7 @@ public class Chronos { throw new RuntimeException(e); } } + localData.saveData(); } public void visit() throws IOException {