This commit is contained in:
modmuss50 2019-02-07 20:26:41 +00:00
parent 094f2fc050
commit c4fff1bf56

View file

@ -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;