mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Formulaic Assemblicators are cool!
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user