mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
parent
dc09896959
commit
214f8a23da
2 changed files with 19 additions and 1 deletions
|
|
@ -104,6 +104,24 @@ namespace MinecraftClient
|
|||
data.StringValue += char.ConvertFromUtf32(int.Parse(toparse.Substring(cursorpos + 2, 4), System.Globalization.NumberStyles.HexNumber));
|
||||
cursorpos += 6; continue;
|
||||
}
|
||||
else if (toparse[cursorpos + 1] == 'n')
|
||||
{
|
||||
data.StringValue += '\n';
|
||||
cursorpos += 2;
|
||||
continue;
|
||||
}
|
||||
else if (toparse[cursorpos + 1] == 'r')
|
||||
{
|
||||
data.StringValue += '\r';
|
||||
cursorpos += 2;
|
||||
continue;
|
||||
}
|
||||
else if (toparse[cursorpos + 1] == 't')
|
||||
{
|
||||
data.StringValue += '\t';
|
||||
cursorpos += 2;
|
||||
continue;
|
||||
}
|
||||
else cursorpos++; //Normal character escapement \"
|
||||
}
|
||||
catch (IndexOutOfRangeException) { cursorpos++; } // \u01<end of string>
|
||||
|
|
|
|||
|
|
@ -450,7 +450,7 @@ namespace MinecraftClient
|
|||
json = text;
|
||||
text = ChatParser.ParseText(json, links);
|
||||
}
|
||||
ConsoleIO.WriteLineFormatted(text, false);
|
||||
ConsoleIO.WriteLineFormatted(text, true);
|
||||
if (Settings.DisplayChatLinks)
|
||||
foreach (string link in links)
|
||||
ConsoleIO.WriteLineFormatted("§8MCC: Link: " + link, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue