diff --git a/MinecraftClient/ChatBot.cs b/MinecraftClient/ChatBot.cs index 0d3fa75e..ce65a3a9 100644 --- a/MinecraftClient/ChatBot.cs +++ b/MinecraftClient/ChatBot.cs @@ -42,14 +42,12 @@ namespace MinecraftClient private McTcpClient _handler = null; private ChatBot master = null; private Queue chatQueue = new Queue(); - private DateTime? lastMessageSentTime = null; + private DateTime? lastMessageSentTime = DateTime.MinValue; private bool CanSendTextNow { get { - return lastMessageSentTime != null - ? DateTime.Now > lastMessageSentTime.Value + Settings.botMessageDelay - : true; + return DateTime.Now > lastMessageSentTime.Value + Settings.botMessageDelay; } } diff --git a/MinecraftClient/Protocol/Handlers/ChatParser.cs b/MinecraftClient/Protocol/Handlers/ChatParser.cs index 0c18fed7..5d2e785b 100644 --- a/MinecraftClient/Protocol/Handlers/ChatParser.cs +++ b/MinecraftClient/Protocol/Handlers/ChatParser.cs @@ -90,7 +90,6 @@ namespace MinecraftClient.Protocol.Handlers tmp = tmp[1].Split(new string[] { "hash\": \"" }, StringSplitOptions.None); string hash = tmp[1].Split('"')[0]; //Translations file identifier on Mojang's servers System.IO.File.WriteAllText(Language_File, downloadString(Settings.TranslationsFile_Website_Download + '/' + hash.Substring(0, 2) + '/' + hash)); - Console.WriteLine(hash); ConsoleIO.WriteLine("Done. File saved as '" + Language_File + '\''); } catch