diff --git a/src/main/java/xyz/mcutils/backend/common/ColorUtils.java b/src/main/java/xyz/mcutils/backend/common/ColorUtils.java index 4e4958d..3c2c72f 100644 --- a/src/main/java/xyz/mcutils/backend/common/ColorUtils.java +++ b/src/main/java/xyz/mcutils/backend/common/ColorUtils.java @@ -57,7 +57,6 @@ public final class ColorUtils { public static String toHTML(@NonNull String input) { StringBuilder builder = new StringBuilder(); boolean nextIsColor = false; // Is the next char a color code? - boolean isBold = false; // Is the text currently bold? // Get the leading spaces from the first line int leadingSpaces = 0; @@ -71,31 +70,22 @@ public final class ColorUtils { } for (char character : input.toCharArray()) { - // Found color symbol, next character is the color + // Found color symbol, next color is the color if (character == 'ยง') { nextIsColor = true; continue; } if (nextIsColor) { // Map the current color to its hex code String color = COLOR_MAP.getOrDefault(Character.toLowerCase(character), ""); - builder.append(""); + builder.append(""); nextIsColor = false; - - if (character == 'l') { // Start bold - builder.append(""); - continue; - } - if (character == 'r') { // Reset formatting - builder.append(""); - continue; - } continue; } - if (character == ' ') { // Preserve space character - builder.append(" "); - } else { - builder.append(character); // Append the char... - } + builder.append(character); // Append the char... } // Add leading spaces to the end of the HTML string