good to go now

This commit is contained in:
Minecon724 2024-09-21 10:11:49 +02:00
parent 5279503b04
commit 912e1b66be
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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);