<BUG>ArrayList<IngredientStack> inputList = new ArrayList();
</BUG>
for(IngredientStack i : inputs)
<BUG>if(i!=null)
{
if(i.oreName!=null)
inputList.add(new IngredientStack(i.oreName, i.inputSize));
else if(i.stackList!=null)
inputList.add(new IngredientStack(Lists.newArrayList(i.stackList), i.inputSize));
else if(i.stack!=null)
inputList.add(new IngredientStack(ApiUtils.copyStackWithAmount(i.stack, i.inputSize)));
}</BUG>
Iterator<IngredientStack> inputIt = inputList.iterator();

else
maxCrafted = maxCrafted==0?supplied:Math.min(maxCrafted, supplied);
}
return maxCrafted;
}
public ItemStack[] consumeInputs(ItemStack[] query, int crafted)
{
ArrayList<IngredientStack> inputList = new ArrayList(inputs.length);
for(IngredientStack i : inputs)
if(i!=null)
inputList.add(i);
ArrayList<ItemStack> consumed = new ArrayList(inputList.size());
Iterator<IngredientStack> inputIt = inputList.iterator();
