From 66874dc33e52823d17ba8da2de585447bcac8593 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 8 Feb 2020 01:21:29 +0100 Subject: [PATCH] fixed the plant boost effect not working --- .../de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java b/src/main/java/de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java index 5c2dee66..1f1ecb31 100644 --- a/src/main/java/de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java +++ b/src/main/java/de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java @@ -63,7 +63,7 @@ public class PlantBoostEffect implements IDrainSpotEffect { for (int i = this.amount / 2 + world.rand.nextInt(this.amount / 2); i >= 0; i--) { int x = MathHelper.floor(pos.getX() + world.rand.nextGaussian() * this.dist); int z = MathHelper.floor(pos.getZ() + world.rand.nextGaussian() * this.dist); - BlockPos plantPos = new BlockPos(x, world.getHeight(Heightmap.Type.WORLD_SURFACE, x, z), z); + BlockPos plantPos = new BlockPos(x, world.getHeight(Heightmap.Type.WORLD_SURFACE, x, z), z).down(); if (plantPos.distanceSq(pos) <= this.dist * this.dist && world.isBlockLoaded(plantPos)) { if (NaturesAuraAPI.instance().isEffectPowderActive(world, plantPos, NAME)) continue;