Fixes bug where materials in config showed in report.

Calculation was still zero, but the materials should just show in the
last part of the report.
This commit is contained in:
tastybento 2019-06-20 18:08:36 -07:00
parent d811b30d3f
commit 1e1e53cf57

View File

@ -308,10 +308,11 @@ public class CalcIslandLevel {
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);