Skip to content

Commit

Permalink
fix dryad bonemealing for good (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabeHunger54 authored Sep 11, 2023
1 parent 173e5d8 commit 8f2a1fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void aiStep() {
timer--;
if (timer > 0) return;
timer = Config.SERVER.DRYAD_BONEMEAL_TIMER.get();
if (level.random.nextDouble() < Config.SERVER.DRYAD_BONEMEAL_CHANCE.get()) return;
if (level.random.nextDouble() >= Config.SERVER.DRYAD_BONEMEAL_CHANCE.get()) return;
int radius = Config.SERVER.DRYAD_BONEMEAL_RADIUS.get();
for (final BlockPos pos : BlockPos.betweenClosed(blockPosition().offset(-radius, -radius, -radius), blockPosition().offset(radius, radius, radius))) {
BlockState state = level.getBlockState(pos);
Expand Down

0 comments on commit 8f2a1fc

Please sign in to comment.