Strip Minecraft Color Codes (§) in BasicIO-NoColor mode (#995)

Strip Minecraft color codes and formatting (§) if in BasicIO mode by using BasicIO-NoColor.
This commit is contained in:
5tanly 2020-05-14 13:36:56 -04:00 committed by GitHub
parent 43c2b4b73b
commit a018304f99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 2 deletions

View file

@ -59,8 +59,12 @@ namespace MinecraftClient
//Setup ConsoleIO
ConsoleIO.LogPrefix = "§8[MCC] ";
if (args.Length >= 1 && args[args.Length - 1] == "BasicIO")
if (args.Length >= 1 && args[args.Length - 1] == "BasicIO" || args.Length >= 1 && args[args.Length - 1] == "BasicIO-NoColor")
{
if (args.Length >= 1 && args[args.Length - 1] == "BasicIO-NoColor")
{
ConsoleIO.BasicIO_NoColor = true;
}
ConsoleIO.BasicIO = true;
args = args.Where(o => !Object.ReferenceEquals(o, args[args.Length - 1])).ToArray();
}