Fixed Precision Sawmill not applying secondary outputs
This commit is contained in:
parent
84759daacd
commit
3305581373
4 changed files with 10 additions and 11 deletions
|
@ -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,12 +70,11 @@ public class ChanceOutput extends MachineOutput<ChanceOutput>
|
|||
{
|
||||
inventory[primaryIndex].stackSize += primaryOutput.stackSize;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if(hasSecondary() && (!doEmit || checkSecondary()))
|
||||
{
|
||||
|
@ -98,9 +96,10 @@ public class ChanceOutput extends MachineOutput<ChanceOutput>
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -66,8 +66,7 @@ public abstract class TileEntityChanceMachine<RECIPE extends ChanceMachineRecipe
|
|||
{
|
||||
operatingTicks++;
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
operate(recipe);
|
||||
|
||||
operatingTicks = 0;
|
||||
|
|
Loading…
Reference in a new issue