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

@ -32,15 +32,15 @@ namespace MinecraftClient
public enum DisconnectReason { InGameKick, LoginRejected, ConnectionLost, UserLogout };
//Handler will be automatically set on bot loading, don't worry about this
public void SetHandler(McTcpClient handler) { this._handler = handler; }
public void SetHandler(McClient handler) { this._handler = handler; }
protected void SetMaster(ChatBot master) { this.master = master; }
protected void LoadBot(ChatBot bot) { Handler.BotUnLoad(bot); Handler.BotLoad(bot); }
private McTcpClient _handler = null;
private McClient _handler = null;
private ChatBot master = null;
private List<string> registeredPluginChannels = new List<String>();
private Queue<string> chatQueue = new Queue<string>();
private DateTime lastMessageSentTime = DateTime.MinValue;
private McTcpClient Handler
private McClient Handler
{
get
{
@ -657,7 +657,7 @@ namespace MinecraftClient
{
if (Settings.DebugMessages)
ConsoleIO.WriteLogLine(String.Format("[{0}] Disconnecting and Reconnecting to the Server", this.GetType().Name));
McTcpClient.ReconnectionAttemptsLeft = ExtraAttempts;
McClient.ReconnectionAttemptsLeft = ExtraAttempts;
Program.Restart(delaySeconds);
}