Fix up translations and remove dupes

This commit is contained in:
libraryaddict
2021-05-23 13:10:46 +12:00
parent f22b4e65c7
commit 2fe8d46c61
3 changed files with 82 additions and 21 deletions

View File

@@ -2510,12 +2510,10 @@ public class DisguiseUtilities {
public static String translateAlternateColorCodes(String string) {
if (NmsVersion.v1_16.isSupported()) {
return string.replaceAll("&(?=#[0-9a-fA-F]{6})", ChatColor.COLOR_CHAR + "");
string = string.replaceAll("&(?=#[0-9a-fA-F]{6})", ChatColor.COLOR_CHAR + "");
}
string = ChatColor.translateAlternateColorCodes('&', string);
return string;
return ChatColor.translateAlternateColorCodes('&', string);
}
/**