Fix #1078 Adding a work Cycle for every pending product

This commit is contained in:
Nedelosk committed 2016-09-17 22:23:11 +02:00
1 parent bbda5c8ba9
commit 253e9f18ed
1 file changed
+5 -2
@@ -113,10 +113,10 @@ public class TileCentrifuge extends TilePowered implements ISocketable, ISidedIn
@Override
public boolean workCycle() {
// If we add pending products, we skip to the next work cycle.
if (tryAddPending()) {
return false;
return true;
}
if (!pendingProducts.isEmpty()) {
@@ -180,6 +180,9 @@ public class TileCentrifuge extends TilePowered implements ISocketable, ISidedIn
@Override
public boolean hasWork() {
if(!pendingProducts.isEmpty()){
return true;
}
checkRecipe();
boolean hasResource = getStackInSlot(InventoryCentrifuge.SLOT_RESOURCE) != null;