From 1e1e53cf57307f7d5266b7f979d50e71ee662df4 Mon Sep 17 00:00:00 2001 From: tastybento Date: Thu, 20 Jun 2019 18:08:36 -0700 Subject: [PATCH] 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. --- .../world/bentobox/level/calculators/CalcIslandLevel.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/world/bentobox/level/calculators/CalcIslandLevel.java b/src/main/java/world/bentobox/level/calculators/CalcIslandLevel.java index a18ecef..7078491 100644 --- a/src/main/java/world/bentobox/level/calculators/CalcIslandLevel.java +++ b/src/main/java/world/bentobox/level/calculators/CalcIslandLevel.java @@ -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);