File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/main/java/org/maxgamer/quickshop/util Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1192,18 +1192,11 @@ public static String parseColours(@Nullable String text) {
11921192 if (StringUtils .isEmpty (text )) {
11931193 return "" ;
11941194 }
1195-
11961195 MineDownParser parser = MINEDOWN .get ().parser ();
11971196 parser .reset ();
11981197 //A hack for saving reset character
11991198 text = text .replace ("&r" , "&l&r" ).replace ("§r" , "§l§r" );
1200- String parseResult = toLegacyText (parser .enable (MineDownParser .Option .LEGACY_COLORS ).backwardsCompatibility (true ).parse (text ).create ());
1201- if (parseResult .isEmpty ()) {
1202- //Pure color code hack handle
1203- return parseColours (text + "😂" ).replace ("😂" , "" );
1204- } else {
1205- return parseResult ;
1206- }
1199+ return toLegacyText (parser .enable (MineDownParser .Option .LEGACY_COLORS ).backwardsCompatibility (true ).parse (text ).create ());
12071200 }
12081201
12091202 /**
You can’t perform that action at this time.
0 commit comments