diff --git a/src/components/util/RGBUtils.ts b/src/components/util/RGBUtils.ts index 777b7b34..6c7c8ee4 100644 --- a/src/components/util/RGBUtils.ts +++ b/src/components/util/RGBUtils.ts @@ -178,6 +178,7 @@ export function generateOutput( if (lowerRange === upperRange) continue; output += `${text.substring(lowerRange, upperRange)}`; } + console.log(output, '181'); } if (format.color != 'MiniMessage') { @@ -222,12 +223,11 @@ export function generateOutput( hexOutput = hexOutput.replace('$c', segment[0]); output += hexOutput; } - - if (format.bold && bold) output = format.bold.replace('$t', output); - if (format.italic && italic) output = format.italic.replace('$t', output); - if (format.underline && underline) output = format.underline.replace('$t', output); - if (format.strikethrough && strikethrough) output = format.strikethrough.replace('$t', output); - if (prefixsuffix) output = prefixsuffix.replace(/\$t/g, output); - return output; } + if (format.bold && bold) output = format.bold.replace('$t', output); + if (format.italic && italic) output = format.italic.replace('$t', output); + if (format.underline && underline) output = format.underline.replace('$t', output); + if (format.strikethrough && strikethrough) output = format.strikethrough.replace('$t', output); + if (prefixsuffix) output = prefixsuffix.replace(/\$t/g, output); + return output; } \ No newline at end of file