From 5c77b59b90d54f6ab81fb1f4a775e763f8c7baeb Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 16 Apr 2024 20:40:09 +0100 Subject: [PATCH] maybe bold for html? --- .../xyz/mcutils/backend/common/ColorUtils.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/java/xyz/mcutils/backend/common/ColorUtils.java b/src/main/java/xyz/mcutils/backend/common/ColorUtils.java index f800ba5..4e4958d 100644 --- a/src/main/java/xyz/mcutils/backend/common/ColorUtils.java +++ b/src/main/java/xyz/mcutils/backend/common/ColorUtils.java @@ -80,14 +80,15 @@ public final class ColorUtils { String color = COLOR_MAP.getOrDefault(Character.toLowerCase(character), ""); builder.append(""); nextIsColor = false; - continue; - } - if (character == 'l') { // Start bold - builder.append(""); - continue; - } - if (character == 'r') { // Reset formatting - builder.append(""); + + if (character == 'l') { // Start bold + builder.append(""); + continue; + } + if (character == 'r') { // Reset formatting + builder.append(""); + continue; + } continue; } if (character == ' ') { // Preserve space character