Skip to content

Commit

Permalink
[publish] 6.0.12 Fix color & fix MinecraftVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
Bkm016 committed Dec 29, 2023
1 parent e752cd2 commit 3a1f4d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static String translate(String in) {
String colorString = builder.toString();
// 1.20.4 不再支持该写法,该模块无法判断版本,因此全部替换为白色
// 若需要恢复默认色请使用 SimpleComponent 中的 reset 属性
colorString = colorString.replace("&r", "&f");
colorString = colorString.replace("&r", "&f").replace("§r", "§f");
return ChatColor.translateAlternateColorCodes('&', colorString);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ object MinecraftVersion {
arrayOf("1.17", "1.17.1"),
arrayOf("1.18", "1.18.1", "1.18.2"), // 10
arrayOf("1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4"), // 11
arrayOf("1.20", "1.20.1", "1.20.2", "1.20.4") // 12 (跳过 1.20.3)
arrayOf("1.20", "1.20.1", "1.20.2", "!1.20.3", "1.20.4") // 12 (跳过 1.20.3)
)

/**
Expand Down

0 comments on commit 3a1f4d5

Please sign in to comment.