From cf951337f674038b871c347db16910ff4a668db6 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 20 Mar 2026 21:40:35 +0000
Subject: [PATCH] Remove PR #2781 changes (Yggdrasil authlib multi-user
selection), keep only PR #2927 GUI overhaul changes
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/0e842cb3-f397-4544-86d4-a99dcd150cd4
---
MinecraftClient/Protocol/ProtocolHandler.cs | 19 ++-----------------
.../ConfigComments/ConfigComments.Designer.cs | 9 ---------
.../ConfigComments/ConfigComments.resx | 3 ---
MinecraftClient/Settings.cs | 3 ---
4 files changed, 2 insertions(+), 32 deletions(-)
diff --git a/MinecraftClient/Protocol/ProtocolHandler.cs b/MinecraftClient/Protocol/ProtocolHandler.cs
index 875ac84f..684e351b 100644
--- a/MinecraftClient/Protocol/ProtocolHandler.cs
+++ b/MinecraftClient/Protocol/ProtocolHandler.cs
@@ -657,24 +657,9 @@ namespace MinecraftClient.Protocol
ConsoleIO.WriteLine(Translations.mcc_avaliable_profiles + availableProfiles);
- string selectedProfileName;
-
- if (Config.Main.General.AuthUser == "")
- {
- ConsoleIO.WriteLine(Translations.mcc_select_profile);
- selectedProfileName = ConsoleIO.ReadLine();
- }
- else
- {
- selectedProfileName = Config.Main.General.AuthUser;
-
- }
-
+ ConsoleIO.WriteLine(Translations.mcc_select_profile);
+ string selectedProfileName = ConsoleIO.ReadLine();
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)
diff --git a/MinecraftClient/Resources/ConfigComments/ConfigComments.Designer.cs b/MinecraftClient/Resources/ConfigComments/ConfigComments.Designer.cs
index 4dcf11cd..65bb9a0b 100644
--- a/MinecraftClient/Resources/ConfigComments/ConfigComments.Designer.cs
+++ b/MinecraftClient/Resources/ConfigComments/ConfigComments.Designer.cs
@@ -1748,15 +1748,6 @@ namespace MinecraftClient {
}
}
- ///
- /// Looks up a localized string similar to Yggdrasil authlib multi-user selection..
- ///
- internal static string Main_General_AuthlibUser {
- get {
- return ResourceManager.GetString("Main.General.AuthlibUser", resourceCulture);
- }
- }
-
///
/// Looks up a localized string similar to The address of the game server, "Host" can be filled in with domain name or IP address. (The "Port" field can be deleted, it will be resolved automatically).
///
diff --git a/MinecraftClient/Resources/ConfigComments/ConfigComments.resx b/MinecraftClient/Resources/ConfigComments/ConfigComments.resx
index 5908d88c..ca440314 100644
--- a/MinecraftClient/Resources/ConfigComments/ConfigComments.resx
+++ b/MinecraftClient/Resources/ConfigComments/ConfigComments.resx
@@ -855,7 +855,4 @@ If the connection to the Minecraft game server is blocked by the firewall, set E
Set to false to opt-out of Sentry error logging.
-
- Yggdrasil authlib multi-user selection.
-
\ No newline at end of file
diff --git a/MinecraftClient/Settings.cs b/MinecraftClient/Settings.cs
index cbecf64b..684e5a98 100644
--- a/MinecraftClient/Settings.cs
+++ b/MinecraftClient/Settings.cs
@@ -496,9 +496,6 @@ namespace MinecraftClient
public LoginMethod Method = LoginMethod.mcc;
[TomlInlineComment("$Main.General.AuthlibServer$")]
public AuthlibServer AuthServer = new(string.Empty);
-
- [TomlInlineComment("$Main.General.AuthlibUser$")]
- public string AuthUser = "";
public enum LoginType { mojang, microsoft,yggdrasil };