Skip to content

Commit a4025b5

Browse files
committed
Merge pull request #559 from hilburn/master
Frankly I'm not sure how ANY decomp recipes generated
2 parents 80fef9d + 84437d8 commit a4025b5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/main/java/minechem/utils/Recipe.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,12 @@ public static void init()
186186
MapKey key = MapKey.getKey(input);
187187
if (components != null && key != null)
188188
{
189-
boolean badRecipe = input.stackSize > 0;
189+
boolean badRecipe = false;
190190
for (ItemStack component : components)
191191
{
192-
if (component != null && component.getItem() != null)
192+
if (component != null && (component.getItem() == null || component.isItemEqual(input) || component.stackSize < 1))
193193
{
194-
if (component.isItemEqual(input) && component.getItemDamage() == input.getItemDamage() || component.stackSize < 1)
195-
{
196-
badRecipe = true;
197-
}
194+
badRecipe = true;
198195
}
199196
}
200197
if (!badRecipe)

0 commit comments

Comments
 (0)