Skip to content

Commit 87561b6

Browse files
Revert "Fix broken coloring"
This reverts commit df93077.
1 parent b18d3d2 commit 87561b6

File tree

1 file changed

+1
-8
lines changed
  • src/main/java/org/maxgamer/quickshop/util

1 file changed

+1
-8
lines changed

src/main/java/org/maxgamer/quickshop/util/Util.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)