mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
MakeSelectedProfileNullable
This commit is contained in:
parent
a97096cddf
commit
49dec51588
1 changed files with 1 additions and 1 deletions
|
|
@ -581,7 +581,7 @@ namespace MinecraftClient.Protocol
|
|||
ConsoleIO.WriteLine(Translations.mcc_select_player);
|
||||
string selectedPlayer = ConsoleIO.ReadLine();
|
||||
ConsoleIO.WriteLine(Translations.mcc_selected_player + selectedPlayer);
|
||||
Json.JSONData selectedProfile = null;
|
||||
Json.JSONData? selectedProfile = null;
|
||||
foreach (Json.JSONData profile in loginResponse.Properties["availableProfiles"].DataArray)
|
||||
{
|
||||
selectedProfile = profile.Properties["name"].StringValue == selectedPlayer ? profile : selectedProfile;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue