Skip to content

Commit

Permalink
Bug Fix: Subpile count in the stockpile shopping list was always zero
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenGnu committed May 3, 2024
1 parent 4ff6b7e commit 43fbcd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ private void updateList() {
if (stockpileItem instanceof SubpileStock) {
String key = stockpileItem.getName().trim();
double value = subpiles.getOrDefault(key, 0.0);
subpiles.put(key, value + stockpileItem.getCountMinimumMultiplied());
subpiles.put(key, value + ((SubpileStock) stockpileItem).getSubMultiplier());
}
TypeIdentifier typeID = new TypeIdentifier(stockpileItem);
if (!typeID.isEmpty()) { //Ignore Total
Expand Down

0 comments on commit 43fbcd5

Please sign in to comment.