Fix Permutation Filter (#712)

This commit is contained in:
slprime authored and GitHub committed 2025-09-06 22:32:14 +02:00
1 parent c5cd5b9e61
commit 84576aa7a2
4 files changed
+32 -9

No files matched your search

@@ -42,7 +42,9 @@ public class SearchTextFormatter implements TextFormatter {
if (!contextPart[0].isEmpty()) {
formattedText.append(
SearchExpressionUtils.HIGHLIGHTS.RECIPE + contextPart[0] + EnumChatFormatting.RESET);
SearchExpressionUtils.HIGHLIGHTS.RECIPE + contextPart[0].substring(0, 1)
+ EnumChatFormatting.RESET);
contextPart[1] = contextPart[0].substring(1) + contextPart[1];
}
if (contextPart[1].isEmpty()) {