Rename McTcpClient to McClient for clarity

+ Fix compile error in #1071
This commit is contained in:
ORelio 2020-06-20 15:01:16 +02:00
parent b52435f0ce
commit 2add4030f4
25 changed files with 36 additions and 36 deletions

View file

@ -23,7 +23,7 @@ namespace MinecraftClient.ChatBots
{
attempts = retries;
if (attempts == -1) { attempts = int.MaxValue; }
McTcpClient.ReconnectionAttemptsLeft = attempts;
McClient.ReconnectionAttemptsLeft = attempts;
delay = DelayBeforeRelog;
if (delay < 1) { delay = 1; }
if (Settings.DebugMessages)
@ -32,7 +32,7 @@ namespace MinecraftClient.ChatBots
public override void Initialize()
{
McTcpClient.ReconnectionAttemptsLeft = attempts;
McClient.ReconnectionAttemptsLeft = attempts;
if (Settings.AutoRelog_IgnoreKickMessage)
{
if (Settings.DebugMessages)
@ -96,7 +96,7 @@ namespace MinecraftClient.ChatBots
LogToConsole("Waiting " + delay + " seconds before reconnecting...");
System.Threading.Thread.Sleep(delay * 1000);
McTcpClient.ReconnectionAttemptsLeft = attempts;
McClient.ReconnectionAttemptsLeft = attempts;
ReconnectToTheServer();
return true;
}