Skip to content

Commit

Permalink
Fix offline client reconnecting as a microsoft account
Browse files Browse the repository at this point in the history
Consider an empty string as a blank password as well as the default dash.
  • Loading branch information
breadbyte committed Mar 6, 2024
1 parent 5f4227a commit 873bd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MinecraftClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ private static void InitializeClient()
ProtocolHandler.LoginResult result = ProtocolHandler.LoginResult.LoginRequired;

string loginLower = ToLowerIfNeed(InternalConfig.Account.Login);
if (InternalConfig.Account.Password == "-")
if (InternalConfig.Account.Password == "-" || InternalConfig.Account.Password == string.Empty)
{
ConsoleIO.WriteLineFormatted("§8" + Translations.mcc_offline, acceptnewlines: true);
result = ProtocolHandler.LoginResult.Success;
Expand Down

0 comments on commit 873bd79

Please sign in to comment.