fix: emergency 9 being replaced with 3 for discord

This commit is contained in:
ChomeNS
2025-05-21 16:18:39 +07:00
parent 3f0ae861e6
commit 8ab00505e4
2 changed files with 2 additions and 2 deletions

View File

@@ -130,7 +130,7 @@ public class ComponentUtilities {
public static String stringifyDiscordAnsi (final Component message) {
return guardedStringify(DISCORD_ANSI_SERIALIZER, message)
.replace("9", "3"); // we have to downscale because discord's ANSI doesn't have bright colors
.replace("\u001b[9", "\u001b[3"); // we have to downscale because discord's ANSI doesn't have bright colors
}
public static String deserializeFromDiscordAnsi (final String original) {