From 8fc9b8c2c1b1462f14aaae8032043c11f9629714 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 8 Aug 2021 00:02:35 +0200 Subject: [PATCH] Simplify this code a little --- .../com/minelittlepony/unicopia/command/RacelistCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/command/RacelistCommand.java b/src/main/java/com/minelittlepony/unicopia/command/RacelistCommand.java index dc16455a..593c02e4 100644 --- a/src/main/java/com/minelittlepony/unicopia/command/RacelistCommand.java +++ b/src/main/java/com/minelittlepony/unicopia/command/RacelistCommand.java @@ -50,9 +50,9 @@ class RacelistCommand { 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; } }