fix: Saving user secret when connecting to game
This commit is contained in:
parent
b6596c7303
commit
057aaeb858
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user