mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-12-26 18:37:53 +01:00
Fixes reporting of world-specific block values in console
This commit is contained in:
parent
8e2f4a4b5e
commit
94114c65e1
@ -330,15 +330,12 @@ public class CalcIslandLevel {
|
|||||||
for (Entry<Material> en : entriesSortedByCount) {
|
for (Entry<Material> en : entriesSortedByCount) {
|
||||||
Material type = en.getElement();
|
Material type = en.getElement();
|
||||||
|
|
||||||
int value = 0;
|
int value = getValue(type);
|
||||||
if (addon.getSettings().getBlockValues().containsKey(type)) {
|
|
||||||
// Specific
|
|
||||||
value = addon.getSettings().getBlockValues().get(type);
|
|
||||||
|
|
||||||
r.add(type.toString() + ":"
|
r.add(type.toString() + ":"
|
||||||
+ String.format("%,d", en.getCount()) + " blocks x " + value + " = " + (value * en.getCount()));
|
+ String.format("%,d", en.getCount()) + " blocks x " + value + " = " + (value * en.getCount()));
|
||||||
total += (value * en.getCount());
|
total += (value * en.getCount());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
r.add("Subtotal = " + total);
|
r.add("Subtotal = " + total);
|
||||||
r.add(LINE_BREAK);
|
r.add(LINE_BREAK);
|
||||||
|
Loading…
Reference in New Issue
Block a user