mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-16 02:04:59 +00:00
Optimize ItemsTooltip sorting
This commit is contained in:
1 parent
f6cd66be3b
commit
9e7b279e37
10 files changed
+41
-49
No files matched your search
@@ -158,7 +158,7 @@ public class SearchTokenParser {
|
||||
return this.filtersCache.computeIfAbsent(filterText, text -> {
|
||||
final String[] parts = text.split("\\|");
|
||||
final List<ItemFilter> searchTokens = Arrays.stream(parts).map(this::parseSearchText).filter(s -> s != null)
|
||||
.collect(Collectors.toCollection(ArrayList::new));
|
||||
.collect(Collectors.toList());
|
||||
|
||||
if (searchTokens.isEmpty()) {
|
||||
return new EverythingItemFilter();
|
||||
|
||||
Reference in new issue
Block a user