mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-09 07:09:41 -04:00
Fix %S no longer being converted to default text colour in GUI
This commit is contained in:
parent
51fc4f656b
commit
7d9192b315
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user