good to go now
This commit is contained in:
parent
5279503b04
commit
912e1b66be
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue