From a52fb6135817521c6749b3abeb38563947f807b2 Mon Sep 17 00:00:00 2001 From: ORelio Date: Sat, 27 Feb 2016 17:59:08 +0100 Subject: [PATCH] lastMessageSentTime does not needs to be optional --- MinecraftClient/ChatBot.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MinecraftClient/ChatBot.cs b/MinecraftClient/ChatBot.cs index c36c9b28..020951e3 100644 --- a/MinecraftClient/ChatBot.cs +++ b/MinecraftClient/ChatBot.cs @@ -43,12 +43,12 @@ namespace MinecraftClient private ChatBot master = null; private List registeredPluginChannels = new List(); private Queue chatQueue = new Queue(); - private DateTime? lastMessageSentTime = DateTime.MinValue; + private DateTime lastMessageSentTime = DateTime.MinValue; private bool CanSendTextNow { get { - return DateTime.Now > lastMessageSentTime.Value + Settings.botMessageDelay; + return DateTime.Now > lastMessageSentTime + Settings.botMessageDelay; } }