Fixed Precision Sawmill not applying secondary outputs

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

No files matched your search

@@ -47,8 +47,10 @@ public class ItemStackInput extends MachineInput<ItemStackInput>
{
inventory[index] = StackUtils.subtract(inventory[index], ingredient);
}
return true;
}
return false;
}
@@ -23,6 +23,5 @@ public abstract class ChanceMachineRecipe<RECIPE extends ChanceMachineRecipe<REC
{
getOutput().applyOutputs(inventory, 2, 4, true);
}
}
}
@@ -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;
@@ -66,8 +66,7 @@ public abstract class TileEntityChanceMachine<RECIPE extends ChanceMachineRecipe
{
operatingTicks++;
}
else
{
else {
operate(recipe);
operatingTicks = 0;