Skip to content

Commit

Permalink
Merge pull request #559 from hilburn/master
Browse files Browse the repository at this point in the history
Frankly I'm not sure how ANY decomp recipes generated
  • Loading branch information
jakimfett committed Jan 2, 2015
2 parents 80fef9d + 84437d8 commit a4025b5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/java/minechem/utils/Recipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,12 @@ public static void init()
MapKey key = MapKey.getKey(input);
if (components != null && key != null)
{
boolean badRecipe = input.stackSize > 0;
boolean badRecipe = false;
for (ItemStack component : components)
{
if (component != null && component.getItem() != null)
if (component != null && (component.getItem() == null || component.isItemEqual(input) || component.stackSize < 1))
{
if (component.isItemEqual(input) && component.getItemDamage() == input.getItemDamage() || component.stackSize < 1)
{
badRecipe = true;
}
badRecipe = true;
}
}
if (!badRecipe)
Expand Down

0 comments on commit a4025b5

Please sign in to comment.