Update FCommons methods

This commit is contained in:
filoghost 2021-07-13 19:13:17 +02:00
parent 2e68e95497
commit 05826266a5
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public class StaticReplacements {
for (Entry<ConfigPath, String> entry : replacementsSection.toMap(ConfigType.STRING).entrySet()) { for (Entry<ConfigPath, String> entry : replacementsSection.toMap(ConfigType.STRING).entrySet()) {
String target = entry.getKey().asRawKey(); String target = entry.getKey().asRawKey();
String replacement = Colors.addColors(entry.getValue()); String replacement = Colors.colorize(entry.getValue());
if (target.length() == 0) { if (target.length() == 0) {
errorCollector.add("error in \"" + config.getSourceFile() + "\":" errorCollector.add("error in \"" + config.getSourceFile() + "\":"

View File

@ -20,7 +20,7 @@ public class DisplayFormat {
input = StaticReplacements.searchAndReplace(input); input = StaticReplacements.searchAndReplace(input);
input = input.replace("&u", "{rainbow}"); input = input.replace("&u", "{rainbow}");
input = Colors.addColors(input); input = Colors.colorize(input);
return input; return input;
} }