From 057aaeb8582f115235bb95e79d89a1b6c086ec68 Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Tue, 31 Dec 2024 15:44:29 +0100 Subject: [PATCH] fix: Saving user secret when connecting to game --- frontend/src/main/java/cz/jzitnik/game/Chronos.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {