Skip to content

Commit 3a1f4d5

Browse files
committed
[publish] 6.0.12 Fix color & fix MinecraftVersion
1 parent e752cd2 commit 3a1f4d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

module/module-chat/src/main/java/taboolib/module/chat/HexColor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static String translate(String in) {
7979
String colorString = builder.toString();
8080
// 1.20.4 不再支持该写法,该模块无法判断版本,因此全部替换为白色
8181
// 若需要恢复默认色请使用 SimpleComponent 中的 reset 属性
82-
colorString = colorString.replace("&r", "&f");
82+
colorString = colorString.replace("&r", "&f").replace("§r", "§f");
8383
return ChatColor.translateAlternateColorCodes('&', colorString);
8484
}
8585

module/module-nms/src/main/kotlin/taboolib/module/nms/MinecraftVersion.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object MinecraftVersion {
6262
arrayOf("1.17", "1.17.1"),
6363
arrayOf("1.18", "1.18.1", "1.18.2"), // 10
6464
arrayOf("1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4"), // 11
65-
arrayOf("1.20", "1.20.1", "1.20.2", "1.20.4") // 12 (跳过 1.20.3)
65+
arrayOf("1.20", "1.20.1", "1.20.2", "!1.20.3", "1.20.4") // 12 (跳过 1.20.3)
6666
)
6767

6868
/**

0 commit comments

Comments
 (0)