aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/nei
diff options
context:
space:
mode:
authorD-Cysteine <54219287+D-Cysteine@users.noreply.github.com>2021-10-21 17:07:33 -0600
committerD-Cysteine <54219287+D-Cysteine@users.noreply.github.com>2021-10-21 17:27:06 -0600
commitf56ee40158dd35d41d75688f17f5182b6c3c26c4 (patch)
tree126becaadd9f8ad64c60929e0ef7e373b9ba6197 /src/main/java/gregtech/nei
parent2b53efea1dff931ebecf7af976cfad76597b1bc6 (diff)
downloadGT5-Unofficial-f56ee40158dd35d41d75688f17f5182b6c3c26c4.tar.gz
GT5-Unofficial-f56ee40158dd35d41d75688f17f5182b6c3c26c4.tar.bz2
GT5-Unofficial-f56ee40158dd35d41d75688f17f5182b6c3c26c4.zip
Restore sorting of recipes in NEI
Revert "Restore sorting of recipes in NEI" This reverts commit c7104eaeb2c6c2e94161436e3c7ecb5378cdc74a. Restore sorting of recipes in NEI
Diffstat (limited to 'src/main/java/gregtech/nei')
-rw-r--r--src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java b/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java
index 2c56766162..90a5d603d2 100644
--- a/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java
+++ b/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java
@@ -64,6 +64,7 @@ public class GT_NEI_DefaultHandler extends RecipeMapHandler {
if (mCachedRecipesVersion == GT_Mod.gregtechproxy.getReloadCount() || mCachedRecipes == null || (cache = mCachedRecipes.get()) == null) {
cache = mRecipeMap.mRecipeList.stream() // do not use parallel stream. This is already parallelized by NEI
.filter(r -> !r.mHidden)
+ .sorted()
.map(CachedDefaultRecipe::new)
.collect(Collectors.toList());
// while the NEI parallelize handlers, for each individual handler it still uses sequential execution model