diff --git a/src/main/java/eu/m724/giants/Drop.java b/src/main/java/eu/m724/giants/Drop.java index a0920d7..d5884ca 100644 --- a/src/main/java/eu/m724/giants/Drop.java +++ b/src/main/java/eu/m724/giants/Drop.java @@ -9,7 +9,7 @@ public class Drop { public final int min, max; public final double chance; - public Drop(ItemStack itemStack, int min, int max, float chance) { + public Drop(ItemStack itemStack, int min, int max, double chance) { this.itemStack = itemStack; this.min = min; this.max = max; diff --git a/src/main/java/eu/m724/giants/GiantProcessor.java b/src/main/java/eu/m724/giants/GiantProcessor.java index 41645cd..038fb3c 100644 --- a/src/main/java/eu/m724/giants/GiantProcessor.java +++ b/src/main/java/eu/m724/giants/GiantProcessor.java @@ -158,7 +158,7 @@ public class GiantProcessor implements Listener { for (Drop drop : configuration.drops) { logger.fine("Rolling a drop"); - if (drop.chance > random.nextFloat()) { + if (drop.chance > random.nextDouble()) { ItemStack is = drop.generateItemStack(); entity.getWorld().dropItemNaturally(location, is);