Fix incorrect ansi code being used for bold (#8000)

Co-authored-by: BillyGalbreath <blake.galbreath@gmail.com>
This commit is contained in:
Owen 2022-06-15 23:40:14 -04:00 committed by GitHub
parent 17c1c6c3e7
commit 94ef34cd0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ index c3631efda9c7fa531a8a9f18fbee7b5f8655382b..9a3c1314d5a0aa20380662595359580b
} }
diff --git a/src/main/java/io/papermc/paper/console/HexFormattingConverter.java b/src/main/java/io/papermc/paper/console/HexFormattingConverter.java diff --git a/src/main/java/io/papermc/paper/console/HexFormattingConverter.java b/src/main/java/io/papermc/paper/console/HexFormattingConverter.java
new file mode 100644 new file mode 100644
index 0000000000000000000000000000000000000000..f39ae450e316255d315aeb362bf967eadef6ba23 index 0000000000000000000000000000000000000000..b4d0b7ecd56ab952319946854168c1299cb0b1be
--- /dev/null --- /dev/null
+++ b/src/main/java/io/papermc/paper/console/HexFormattingConverter.java +++ b/src/main/java/io/papermc/paper/console/HexFormattingConverter.java
@@ -0,0 +1,212 @@ @@ -0,0 +1,212 @@
@ -138,7 +138,7 @@ index 0000000000000000000000000000000000000000..f39ae450e316255d315aeb362bf967ea
+ formatHexAnsi(NamedTextColor.YELLOW), // Yellow §e + formatHexAnsi(NamedTextColor.YELLOW), // Yellow §e
+ formatHexAnsi(NamedTextColor.WHITE), // White §f + formatHexAnsi(NamedTextColor.WHITE), // White §f
+ "\u001B[5m", // Obfuscated §k + "\u001B[5m", // Obfuscated §k
+ "\u001B[21m", // Bold §l + "\u001B[1m", // Bold §l
+ "\u001B[9m", // Strikethrough §m + "\u001B[9m", // Strikethrough §m
+ "\u001B[4m", // Underline §n + "\u001B[4m", // Underline §n
+ "\u001B[3m", // Italic §o + "\u001B[3m", // Italic §o
@ -162,7 +162,7 @@ index 0000000000000000000000000000000000000000..f39ae450e316255d315aeb362bf967ea
+ "\u001B[0;33;1m", // Yellow §e + "\u001B[0;33;1m", // Yellow §e
+ "\u001B[0;37;1m", // White §f + "\u001B[0;37;1m", // White §f
+ "\u001B[5m", // Obfuscated §k + "\u001B[5m", // Obfuscated §k
+ "\u001B[21m", // Bold §l + "\u001B[1m", // Bold §l
+ "\u001B[9m", // Strikethrough §m + "\u001B[9m", // Strikethrough §m
+ "\u001B[4m", // Underline §n + "\u001B[4m", // Underline §n
+ "\u001B[3m", // Italic §o + "\u001B[3m", // Italic §o