Fix minecraft.custom stat translations

This commit is contained in:
Marcel Konrad
2020-07-01 23:24:15 +02:00
parent 2ef1c91797
commit bf4f6b0654

View File

@@ -96,6 +96,13 @@ public class ContentScoreboardObjectives extends ContentScoreboard
}
}
String translation = "stat." + key;
if(!translation.equals(I18n.format(translation)))
{
return I18n.format(translation);
}
if(Arrays.stream(TextFormatting.values()).map(TextFormatting::getFriendlyName).anyMatch(Predicates.equalTo(key)))
{
return I18n.format("gui.worldhandler.color." + key);