Skip to content

Commit

Permalink
Fix alloys building even though there wasn't enough liquid overall, r…
Browse files Browse the repository at this point in the history
…esulting in liquids with amount 0 in the smeltery.
  • Loading branch information
bonii-xx committed Sep 27, 2014
1 parent 8f83390 commit 457ad12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/tconstruct/library/crafting/AlloyMix.java
Expand Up @@ -31,19 +31,19 @@ public FluidStack mix (ArrayList<FluidStack> liquids)
while (iter.hasNext())
{
FluidStack mixer = (FluidStack) iter.next();
// if (mixer.itemID == liquid.itemID && mixer.itemMeta ==
// liquid.itemMeta)
if (mixer.isFluidEqual(liquid))
{
// do we actually have enough of that liquid?
if(liquid.amount < mixer.amount)
break;

int eAmt = liquid.amount / mixer.amount;
effectiveAmount.add(eAmt);
copyMix.remove(mixer);
// inputs.add(liquid);
break;
}
}
}
// }

if (copyMix.size() > 0)
return null;
Expand Down

0 comments on commit 457ad12

Please sign in to comment.