Should fix #1666
This commit is contained in:
parent
094f2fc050
commit
c4fff1bf56
1 changed files with 30 additions and 26 deletions
|
@ -211,6 +211,7 @@ public class TileRollingMachine extends TilePowerAcceptor
|
|||
}
|
||||
}
|
||||
|
||||
if(!possibleSlots.isEmpty()){
|
||||
int totalItems = possibleSlots.stream()
|
||||
.mapToInt(value -> inventory.getStackInSlot(value).getCount()).sum();
|
||||
int slots = possibleSlots.size();
|
||||
|
@ -245,6 +246,9 @@ public class TileRollingMachine extends TilePowerAcceptor
|
|||
if (!needsBalance) {
|
||||
return Optional.empty();
|
||||
}
|
||||
} else {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
//Slot, count
|
||||
Pair<Integer, Integer> bestSlot = null;
|
||||
|
|
Loading…
Reference in a new issue