Fix scripts failing to send msg after reco

Script was using old disposed handler
Fixed by properly updating reference
Bug report by 1092CQ (thanks!)
This commit is contained in:
ORelio 2015-01-23 22:07:46 +01:00
parent 314c5561ab
commit 24c4344a70

View file

@ -126,7 +126,9 @@ namespace MinecraftClient
}
else
{
foreach (ChatBot bot in scripts_on_hold) { bots.Add(bot); }
foreach (ChatBot bot in scripts_on_hold)
bot.SetHandler(this);
bots.AddRange(scripts_on_hold);
scripts_on_hold.Clear();
Console.WriteLine("Server was successfully joined.\nType '"