aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-05-12 10:55:09 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-05-12 10:55:09 +0800
commitb99108611ea89dc0eda6c433447ce398a98ad4ad (patch)
treee490afcfe8974af8a6c65954667bf822505224d4 /src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
parenteab120d5619f972e29afc9776959f6d6096d3926 (diff)
downloadRoughlyEnoughItems-b99108611ea89dc0eda6c433447ce398a98ad4ad.tar.gz
RoughlyEnoughItems-b99108611ea89dc0eda6c433447ce398a98ad4ad.tar.bz2
RoughlyEnoughItems-b99108611ea89dc0eda6c433447ce398a98ad4ad.zip
Build 109
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java')
-rw-r--r--src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
index cf8acd66e..80db040d1 100644
--- a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
+++ b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
@@ -35,7 +35,6 @@ public class RecipeHelperImpl implements RecipeHelper {
VISIBILITY_HANDLER_COMPARATOR = comparator.reversed();
}
- private final List<Recipe> sortedRecipes = new ArrayList<>();
private final AtomicInteger recipeCount = new AtomicInteger();
private final Map<Identifier, List<RecipeDisplay>> recipeCategoryListMap = Maps.newHashMap();
private final Map<Identifier, DisplaySettings> categoryDisplaySettingsMap = Maps.newHashMap();
@@ -199,7 +198,6 @@ public class RecipeHelperImpl implements RecipeHelper {
this.speedCraftFunctionalMap.clear();
this.categoryDisplaySettingsMap.clear();
this.displayVisibilityHandlers.clear();
- this.sortedRecipes.clear();
((DisplayHelperImpl) RoughlyEnoughItemsCore.getDisplayHelper()).resetCache();
BaseBoundsHandler baseBoundsHandler = new BaseBoundsHandlerImpl();
RoughlyEnoughItemsCore.getDisplayHelper().registerBoundsHandler(baseBoundsHandler);
@@ -253,9 +251,7 @@ public class RecipeHelperImpl implements RecipeHelper {
@Override
public List<Recipe> getVanillaSortedRecipes() {
- if (sortedRecipes.isEmpty())
- sortedRecipes.addAll(getRecipeManager().values().stream().sorted(RECIPE_COMPARATOR).collect(Collectors.toSet()));
- return sortedRecipes;
+ return getRecipeManager().values().stream().sorted(RECIPE_COMPARATOR).collect(Collectors.toList());
}
@Override