Fix minecraft.custom stat translations
This commit is contained in:
1 parent
2ef1c91797
commit
bf4f6b0654
1 file changed
+7
+7
@@ -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)))
|
if(Arrays.stream(TextFormatting.values()).map(TextFormatting::getFriendlyName).anyMatch(Predicates.equalTo(key)))
|
||||||
{
|
{
|
||||||
return I18n.format("gui.worldhandler.color." + key);
|
return I18n.format("gui.worldhandler.color." + key);
|
||||||
|
|||||||
Reference in new issue
Block a user