diff --git a/MinecraftClient/Json.cs b/MinecraftClient/Json.cs index 0d6db1d8..6e98a4b4 100644 --- a/MinecraftClient/Json.cs +++ b/MinecraftClient/Json.cs @@ -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 diff --git a/MinecraftClient/McTcpClient.cs b/MinecraftClient/McTcpClient.cs index 990c4896..db109fe0 100644 --- a/MinecraftClient/McTcpClient.cs +++ b/MinecraftClient/McTcpClient.cs @@ -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);