Fix %S no longer being converted to default text colour in GUI

This commit is contained in:
UnknownShadow200 2017-09-07 15:53:27 +10:00
parent 51fc4f656b
commit 7d9192b315
2 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,8 @@ namespace MCGalaxy.Gui {
public static void Format(string message, Action<char, string> output) {
int index = 0;
char col = 'S';
message = Colors.Escape(message);
message = message.Replace("%S", "&f"); // We want %S to be treated specially when displayed to GUI
message = Colors.Escape(message); // Need to Replace first, otherwise it's mapped by Colors.Escape
while (index < message.Length)
OutputPart(ref col, ref index, message, output);