Skip to content

Commit

Permalink
Frankly I'm not sure how ANY decomp recipes generated
Browse files Browse the repository at this point in the history
  • Loading branch information
hilburn committed Jan 2, 2015
1 parent 80fef9d commit 84437d8
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 84437d8

Please sign in to comment.