do correct check in simulation canStartProcessing, #530

This commit is contained in:
way2muchnoise
2016-10-27 19:12:05 +02:00
parent b6413c68ad
commit 632d6944a5

View File

@@ -51,12 +51,7 @@ public class CraftingStepProcess extends CraftingStep {
@Override
public boolean canStartProcessing() {
IItemHandler inventory = getPattern().getContainer().getFacingInventory();
for (ItemStack stack : getToInsert()) {
if (ItemHandlerHelper.insertItem(inventory, stack, true) != null) {
return false;
}
}
return true;
return insertSimulation(inventory, new LinkedList<>(getToInsert()));
}
@Override