mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-18 19:29:34 +00:00
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.
This commit is contained in:
1 parent
5403ad5a80
commit
31cd32f21c
1 file changed
+1
@@ -86,6 +86,7 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
|
||||
for(ItemStack stack: stacks) {
|
||||
if(NEIServerUtils.areStacksSameTypeCrafting(stack, ingredient)) {
|
||||
arecipes.add(new CachedAlchemyRecipe(recipe));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user