aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/client/RecipeHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/RecipeHelper.java')
-rw-r--r--src/main/java/me/shedaniel/rei/client/RecipeHelper.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/RecipeHelper.java b/src/main/java/me/shedaniel/rei/client/RecipeHelper.java
index ead30fdfa..9860ea8ed 100644
--- a/src/main/java/me/shedaniel/rei/client/RecipeHelper.java
+++ b/src/main/java/me/shedaniel/rei/client/RecipeHelper.java
@@ -55,7 +55,7 @@ public class RecipeHelper implements RecipeSync {
}
public static void registerCategory(IRecipeCategory category) {
- categories.add(category);
+ categories.add(0, category);
recipeCategoryListMap.put(category.getIdentifier(), Lists.newArrayList());
}
@@ -96,8 +96,8 @@ public class RecipeHelper implements RecipeSync {
for(ItemStack itemStack : input) {
if (ItemStack.areEqualIgnoreTags(itemStack, stack)) {
categoriesMap.get(recipeDisplay.getRecipeCategory()).add(recipeDisplay);
- if (found)
- break;
+ found = true;
+ break;
}
}
if (found)