aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/client/RecipeHelper.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-11 17:16:53 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-11 17:16:53 +0800
commit77ff77003ff31dabda47388ca2d9727a185b90f8 (patch)
tree73f735d0bfd3a386f0f6551cbc02675ea43206d4 /src/main/java/me/shedaniel/rei/client/RecipeHelper.java
parentdef24dd1d0ebd6e12a3a459ece05c0fc94aae4de (diff)
downloadRoughlyEnoughItems-77ff77003ff31dabda47388ca2d9727a185b90f8.tar.gz
RoughlyEnoughItems-77ff77003ff31dabda47388ca2d9727a185b90f8.tar.bz2
RoughlyEnoughItems-77ff77003ff31dabda47388ca2d9727a185b90f8.zip
Crafting Display
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)