From 3fdeaa377ae0ba0059e8c3e07be99c44b7a2e306 Mon Sep 17 00:00:00 2001 From: bwmp Date: Fri, 18 Oct 2024 22:10:03 -0700 Subject: [PATCH] fix minimessage format for rgb page --- src/components/util/RGBUtils.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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