mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-24 22:14:29 +00:00
Add recipe text search with ~ prefix (#1120)
This commit is contained in:
1 parent
8e6b31de18
commit
1c33a5b7d6
16 files changed
+363
-71
No files matched your search
@@ -58,7 +58,9 @@ public class SearchTextFormatter implements TextFormatter {
|
||||
|
||||
int startIndex = 0;
|
||||
|
||||
for (SearchToken token : searchParser.splitSearchText(contextPart[1])) {
|
||||
final String prefixes = contextPart[0].startsWith("~") ? "" : searchParser.getPrefixes();
|
||||
|
||||
for (SearchToken token : searchParser.splitSearchText(contextPart[1], prefixes)) {
|
||||
formattedText.append(contextPart[1].substring(startIndex, token.start));
|
||||
EnumChatFormatting tokenColor = EnumChatFormatting.RESET;
|
||||
|
||||
|
||||
Reference in new issue
Block a user