mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fix crash on RemoteControl launching a Script
List containing bots is modifier while being enumerated: crash Fixed by copying the list before enumerating Bug report by Nicconyancat
This commit is contained in:
parent
ad5897fcb4
commit
050b2985f5
1 changed files with 1 additions and 1 deletions
|
|
@ -299,7 +299,7 @@ namespace MinecraftClient
|
||||||
public void OnTextReceived(string text)
|
public void OnTextReceived(string text)
|
||||||
{
|
{
|
||||||
ConsoleIO.WriteLineFormatted(text, false);
|
ConsoleIO.WriteLineFormatted(text, false);
|
||||||
foreach (ChatBot bot in bots)
|
foreach (ChatBot bot in new List<ChatBot>(bots))
|
||||||
bot.GetText(text);
|
bot.GetText(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue