Skip to content

Commit

Permalink
Fixes bug where materials in config showed in report.
Browse files Browse the repository at this point in the history
Calculation was still zero, but the materials should just show in the
last part of the report.
  • Loading branch information
tastybento committed Jun 21, 2019
1 parent d811b30 commit 1e1e53c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,11 @@ private Collection<String> sortedReport(int total, Multiset<Material> MaterialCo
if (addon.getSettings().getBlockValues().containsKey(type)) {
// Specific
value = addon.getSettings().getBlockValues().get(type);

r.add(type.toString() + ":"
+ String.format("%,d", en.getCount()) + " blocks x " + value + " = " + (value * en.getCount()));
total += (value * en.getCount());
}
r.add(type.toString() + ":"
+ String.format("%,d", en.getCount()) + " blocks x " + value + " = " + (value * en.getCount()));
total += (value * en.getCount());
}
r.add("Subtotal = " + total);
r.add(LINE_BREAK);
Expand Down

0 comments on commit 1e1e53c

Please sign in to comment.