mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 12:32:23 +00:00
Fix #1078 Adding a work Cycle for every pending product
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user