Fix startup error

This commit is contained in:
libraryaddict 2021-05-08 22:34:35 +12:00
parent 3fb325b0e1
commit 807a163256

View File

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