diff --git a/src/main/java/eu/m724/giants/Configuration.java b/src/main/java/eu/m724/giants/Configuration.java index 34ea6cb..de52b6f 100644 --- a/src/main/java/eu/m724/giants/Configuration.java +++ b/src/main/java/eu/m724/giants/Configuration.java @@ -85,10 +85,11 @@ public class Configuration { int min = (int) dropMap.get("quantityMin"); int max = (int) dropMap.get("quantityMax"); + double chance; try { - double chance = (double) dropMap.get("chance"); + chance = (double) dropMap.get("chance"); } catch (ClassCastException e) { // pointlessest error ever - double chance = ((Integer) dropMap.get("chance")).doubleValue(); + chance = ((Integer) dropMap.get("chance")).doubleValue(); } drops.add(new Drop(itemStack, min, max, chance));