From 31cd32f21cd83888fc5f0ae17c66d8cd44c98cf2 Mon Sep 17 00:00:00 2001 From: joshiejack Date: Wed, 19 Mar 2014 02:59:45 +0000 Subject: [PATCH] Alchemy handler 'bug' fix :P Just added a break so that the for loop when going through the items when searching uses, exits when it has found the ingredient. This fixes the bug where searching usages on an item that's used up more than once in a recipe results in multiple copies of the recipe. --- BM_src/joshie/alchemicalWizardy/nei/NEIAlchemyRecipeHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/BM_src/joshie/alchemicalWizardy/nei/NEIAlchemyRecipeHandler.java b/BM_src/joshie/alchemicalWizardy/nei/NEIAlchemyRecipeHandler.java index 4e8750d6..c39080ea 100644 --- a/BM_src/joshie/alchemicalWizardy/nei/NEIAlchemyRecipeHandler.java +++ b/BM_src/joshie/alchemicalWizardy/nei/NEIAlchemyRecipeHandler.java @@ -86,6 +86,7 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler { for(ItemStack stack: stacks) { if(NEIServerUtils.areStacksSameTypeCrafting(stack, ingredient)) { arecipes.add(new CachedAlchemyRecipe(recipe)); + break; } }