mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Updated docs for Yggdrasil authlib multi-user selection and cleaned the code a bit
This commit is contained in:
parent
7162691b57
commit
454ce331b2
2 changed files with 36 additions and 9 deletions
|
|
@ -694,22 +694,15 @@ namespace MinecraftClient.Protocol
|
|||
|
||||
string selectedProfileName;
|
||||
|
||||
if (Config.Main.General.AuthUser == "")
|
||||
if (String.IsNullOrEmpty(Config.Main.General.AuthUser) || String.IsNullOrWhiteSpace(Config.Main.General.AuthUser))
|
||||
{
|
||||
ConsoleIO.WriteLine(Translations.mcc_select_profile);
|
||||
selectedProfileName = ConsoleIO.ReadLine();
|
||||
}
|
||||
else
|
||||
{
|
||||
selectedProfileName = Config.Main.General.AuthUser;
|
||||
|
||||
}
|
||||
else selectedProfileName = Config.Main.General.AuthUser;
|
||||
|
||||
ConsoleIO.WriteLine(Translations.mcc_selected_profile + " " + selectedProfileName);
|
||||
|
||||
// ConsoleIO.WriteLine(Translations.mcc_select_profile);
|
||||
// string selectedProfileName = ConsoleIO.ReadLine();
|
||||
// ConsoleIO.WriteLine(Translations.mcc_selected_profile + " " + selectedProfileName);
|
||||
Json.JSONData? selectedProfile = null;
|
||||
foreach (Json.JSONData profile in loginResponse.Properties["availableProfiles"]
|
||||
.DataArray)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue