fix: Saving user secret when connecting to game

This commit is contained in:
jzitnik-dev 2024-12-31 15:44:29 +01:00
parent b6596c7303
commit 057aaeb858
Signed by: jzitnik
GPG Key ID: C577A802A6AF4EF3

View File

@ -151,7 +151,6 @@ public class Chronos {
System.out.println("Stiskněte " + Cli.Colors.CYAN + "Enter" + Cli.Colors.RESET + " pro start hry..."); System.out.println("Stiskněte " + Cli.Colors.CYAN + "Enter" + Cli.Colors.RESET + " pro start hry...");
System.console().readLine(); System.console().readLine();
localData.saveData();
apiService.startGame(localData.getUserSecret(), localData.getGameKey()).execute(); apiService.startGame(localData.getUserSecret(), localData.getGameKey()).execute();
} }
@ -193,6 +192,7 @@ public class Chronos {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }
localData.saveData();
} }
public void visit() throws IOException { public void visit() throws IOException {