diff options
author | Martin Robertz <dream-master@gmx.net> | 2021-10-22 01:32:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 01:32:16 +0200 |
commit | c5378f1c3f73a2dd5c373e97ad4ebcb74ae2efc9 (patch) | |
tree | 126becaadd9f8ad64c60929e0ef7e373b9ba6197 | |
parent | 2b53efea1dff931ebecf7af976cfad76597b1bc6 (diff) | |
parent | f56ee40158dd35d41d75688f17f5182b6c3c26c4 (diff) | |
download | GT5-Unofficial-c5378f1c3f73a2dd5c373e97ad4ebcb74ae2efc9.tar.gz GT5-Unofficial-c5378f1c3f73a2dd5c373e97ad4ebcb74ae2efc9.tar.bz2 GT5-Unofficial-c5378f1c3f73a2dd5c373e97ad4ebcb74ae2efc9.zip |
Merge pull request #703 from D-Cysteine/experimental
Restore sorting of recipes in NEI
-rw-r--r-- | src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java | 1 |
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 |