Skip to content

Commit

Permalink
Fixed Multiblock machines crashing for processes without item- or flu…
Browse files Browse the repository at this point in the history
…id-inputs
  • Loading branch information
BluSunrize committed Sep 6, 2016
1 parent 45564d5 commit 1c3d39a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,10 @@ protected void processFinish(TileEntityMultiblockMetal multiblock)
{
super.processFinish(multiblock);
ItemStack[] inv = multiblock.getInventory();
if(inv!=null && this.inputSlots!=null)
List<IngredientStack> itemInputList = this.recipe.getItemInputs();
if(inv != null && this.inputSlots != null && itemInputList != null)
{
Iterator<IngredientStack> iterator = new ArrayList(this.recipe.getItemInputs()).iterator();
Iterator<IngredientStack> iterator = new ArrayList(itemInputList).iterator();
while(iterator.hasNext())
{
IngredientStack ingr = iterator.next();
Expand All @@ -630,9 +631,10 @@ protected void processFinish(TileEntityMultiblockMetal multiblock)
}
}
FluidTank[] tanks = multiblock.getInternalTanks();
if(tanks!=null && this.inputTanks!=null)
List<FluidStack> fluidInputList = this.recipe.getFluidInputs();
if(tanks != null && this.inputTanks != null && fluidInputList != null)
{
Iterator<FluidStack> iterator = new ArrayList(this.recipe.getFluidInputs()).iterator();
Iterator<FluidStack> iterator = new ArrayList(fluidInputList).iterator();
while(iterator.hasNext())
{
FluidStack ingr = iterator.next();
Expand Down

0 comments on commit 1c3d39a

Please sign in to comment.