mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Simplify this code a little
This commit is contained in:
parent
78dd2a93e8
commit
8fc9b8c2c1
1 changed files with 2 additions and 2 deletions
|
@ -50,9 +50,9 @@ class RacelistCommand {
|
||||||
translationKey += ".failed";
|
translationKey += ".failed";
|
||||||
}
|
}
|
||||||
|
|
||||||
Text formattedName = new TranslatableText(race.name().toLowerCase()).styled(s -> s.withColor(Formatting.GOLD));
|
Text formattedName = new TranslatableText(race.name().toLowerCase()).formatted(Formatting.GOLD);
|
||||||
|
|
||||||
source.sendFeedback(new TranslatableText(translationKey, formattedName).styled(s -> s.withColor(Formatting.GREEN)), false);
|
source.sendFeedback(new TranslatableText(translationKey, formattedName).formatted(Formatting.GREEN), false);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue