From 2f326aeaae9dccd5dc62ae763cc9654f69a579bd Mon Sep 17 00:00:00 2001 From: themode Date: Sun, 31 Jan 2021 00:25:49 +0100 Subject: [PATCH] Rename #toLegacy to #toFormat since it didn't make sense --- src/main/java/net/minestom/server/chat/ColoredText.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/minestom/server/chat/ColoredText.java b/src/main/java/net/minestom/server/chat/ColoredText.java index dabdd1ea3..4ccc06d0c 100644 --- a/src/main/java/net/minestom/server/chat/ColoredText.java +++ b/src/main/java/net/minestom/server/chat/ColoredText.java @@ -69,7 +69,7 @@ public class ColoredText extends JsonMessage { */ @NotNull public static ColoredText ofLegacy(@NotNull String message, char colorChar) { - final String legacy = toLegacy(message, colorChar); + final String legacy = toFormat(message, colorChar); return of(legacy); } @@ -107,7 +107,7 @@ public class ColoredText extends JsonMessage { */ @NotNull public ColoredText appendLegacy(@NotNull String message, char colorChar) { - final String legacy = toLegacy(message, colorChar); + final String legacy = toFormat(message, colorChar); return of(legacy); } @@ -326,7 +326,8 @@ public class ColoredText extends JsonMessage { * @param colorChar the char used before the color code * @return the converted legacy text */ - private static String toLegacy(@NotNull String message, char colorChar) { + @NotNull + private static String toFormat(@NotNull String message, char colorChar) { StringBuilder result = new StringBuilder(); for (int i = 0; i < message.length(); i++) {