Formulaic Assemblicators are cool!

This commit is contained in:
aidancbrady committed 2016-03-15 19:30:16 -04:00
1 parent 9c8e392638
commit ca7fc4aaf4
5 files changed
+79 -24

No files matched your search

@@ -344,11 +344,11 @@ public class TileEntityFormulaicAssemblicator extends TileEntityElectricBlock im
while(craftSingle());
}
private void moveItemsToInput()
private void moveItemsToInput(boolean forcePush)
{
for(int i = 27; i <= 35; i++)
{
if(inventory[i] != null && formula != null && !formula.isIngredientInPos(worldObj, inventory[i], i-27))
if(inventory[i] != null && (forcePush || (formula != null && !formula.isIngredientInPos(worldObj, inventory[i], i-27))))
{
inventory[i] = tryMoveToInput(inventory[i]);
}
@@ -364,7 +364,7 @@ public class TileEntityFormulaicAssemblicator extends TileEntityElectricBlock im
}
else if(formula != null)
{
moveItemsToInput();
moveItemsToInput(false);
autoMode = true;
}
@@ -547,6 +547,16 @@ public class TileEntityFormulaicAssemblicator extends TileEntityElectricBlock im
{
craftAll();
}
else if(type == 4)
{
if(formula != null)
{
moveItemsToGrid();
}
else {
moveItemsToInput(true);
}
}
return;
}