Fixed Precision Sawmill not applying secondary outputs

This commit is contained in:
Aidan C. Brady 2015-03-20 23:16:48 -05:00
parent 84759daacd
commit 3305581373
4 changed files with 10 additions and 11 deletions

View file

@ -47,8 +47,10 @@ public class ItemStackInput extends MachineInput<ItemStackInput>
{
inventory[index] = StackUtils.subtract(inventory[index], ingredient);
}
return true;
}
return false;
}

View file

@ -23,6 +23,5 @@ public abstract class ChanceMachineRecipe<RECIPE extends ChanceMachineRecipe<REC
{
getOutput().applyOutputs(inventory, 2, 4, true);
}
}
}

View file

@ -63,7 +63,6 @@ public class ChanceOutput extends MachineOutput<ChanceOutput>
{
inventory[primaryIndex] = primaryOutput.copy();
}
return true;
}
else if(inventory[primaryIndex].isItemEqual(primaryOutput) && inventory[primaryIndex].stackSize + primaryOutput.stackSize <= inventory[primaryIndex].getMaxStackSize())
{
@ -71,13 +70,12 @@ public class ChanceOutput extends MachineOutput<ChanceOutput>
{
inventory[primaryIndex].stackSize += primaryOutput.stackSize;
}
return true;
}
return false;
else {
return false;
}
}
if(hasSecondary() && (!doEmit || checkSecondary()))
{
if(inventory[secondaryIndex] == null)
@ -98,8 +96,9 @@ public class ChanceOutput extends MachineOutput<ChanceOutput>
return true;
}
return false;
else {
return false;
}
}
return true;

View file

@ -66,8 +66,7 @@ public abstract class TileEntityChanceMachine<RECIPE extends ChanceMachineRecipe
{
operatingTicks++;
}
else
{
else {
operate(recipe);
operatingTicks = 0;