mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fixed username added several times with autorelog
- If using autorelog bot, " - Username" was added each time the app was restarting - To fix this, added a ConsoleTitle setting which is re-used when restarting
This commit is contained in:
parent
b49850e042
commit
fa6aa107c8
2 changed files with 5 additions and 3 deletions
|
|
@ -23,7 +23,6 @@ namespace MinecraftClient
|
|||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.Title = "Minecraft Console Client";
|
||||
Console.WriteLine("Console Client for MC 1.7.2 to 1.7.4 - v" + Version + " - By ORelio & Contributors");
|
||||
|
||||
//Basic Input/Output ?
|
||||
|
|
@ -148,6 +147,8 @@ namespace MinecraftClient
|
|||
}
|
||||
else Settings.WriteDefaultSettings("MinecraftClient.ini");
|
||||
|
||||
Console.Title = Settings.ConsoleTitle;
|
||||
|
||||
//Asking the user to type in missing data such as Username and Password
|
||||
|
||||
if (Settings.Login == "")
|
||||
|
|
@ -199,7 +200,7 @@ namespace MinecraftClient
|
|||
}
|
||||
if (result == MinecraftCom.LoginResult.Success)
|
||||
{
|
||||
Console.Title += " - " + Settings.Username;
|
||||
Console.Title = Settings.ConsoleTitle + " - " + Settings.Username;
|
||||
|
||||
Console.WriteLine("Success. (session ID: " + sessionID + ')');
|
||||
if (Settings.ServerIP == "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue