mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fix null characters in chat prompt (old bug)
Sometimes null characters were inserted in chat prompt Rename "Scripting" bot into "Script" bot.
This commit is contained in:
parent
b0e4e993ce
commit
a543620a80
5 changed files with 23 additions and 14 deletions
|
|
@ -597,12 +597,12 @@ namespace MinecraftClient
|
|||
catch (ObjectDisposedException) { }
|
||||
|
||||
foreach (ChatBot bot in bots)
|
||||
if (bot is Bots.Scripting)
|
||||
scripts_on_hold.Add((Bots.Scripting)bot);
|
||||
if (bot is Bots.Script)
|
||||
scripts_on_hold.Add((Bots.Script)bot);
|
||||
}
|
||||
|
||||
private List<ChatBot> bots = new List<ChatBot>();
|
||||
private static List<Bots.Scripting> scripts_on_hold = new List<Bots.Scripting>();
|
||||
private static List<Bots.Script> scripts_on_hold = new List<Bots.Script>();
|
||||
public void BotLoad(ChatBot b) { b.SetHandler(this); bots.Add(b); b.Initialize(); Settings.SingleCommand = ""; }
|
||||
public void BotUnLoad(ChatBot b) { bots.RemoveAll(item => object.ReferenceEquals(item, b)); }
|
||||
public void BotClear() { bots.Clear(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue