diff --git a/core/src/main/java/io/github/md5sha256/addictiveexperience/implementation/plant/PlantListener.java b/core/src/main/java/io/github/md5sha256/addictiveexperience/implementation/plant/PlantListener.java index 301df63..9d84971 100644 --- a/core/src/main/java/io/github/md5sha256/addictiveexperience/implementation/plant/PlantListener.java +++ b/core/src/main/java/io/github/md5sha256/addictiveexperience/implementation/plant/PlantListener.java @@ -176,7 +176,7 @@ private void handleHarvest(@NotNull Block block, @NotNull DrugPlantData data) { final double probabilityHarvest = meta.harvestSuccessProbability(); final int amountHarvest = meta.harvestAmount(); - final boolean harvest = this.random.nextDouble() >= probabilityHarvest; + final boolean harvest = this.random.nextDouble() <= probabilityHarvest; if (!harvest) { return; } @@ -185,7 +185,7 @@ private void handleHarvest(@NotNull Block block, @NotNull DrugPlantData data) { final int amountSeed = meta.seedDropAmount(); final boolean dropSeeds; if (optionalSeed.isPresent()) { - dropSeeds = this.random.nextDouble() >= probabilitySeedDrop; + dropSeeds = this.random.nextDouble() <= probabilitySeedDrop; } else { dropSeeds = false; }