From 75cb0c98a861b73ba33acb4dc50271267b5f9aa6 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 8 Feb 2020 13:19:38 +0100 Subject: [PATCH] fixed the plant boost effect affecting grass blocks --- .../de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java | 3 ++- 1 file changed, 2 insertions(+), 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 1f1ecb31..f47ef747 100644 --- a/src/main/java/de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java +++ b/src/main/java/de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java @@ -70,7 +70,8 @@ public class PlantBoostEffect implements IDrainSpotEffect { BlockState state = world.getBlockState(plantPos); Block block = state.getBlock(); - if (block instanceof IGrowable && !(block instanceof DoublePlantBlock) && !(block instanceof TallGrassBlock) && block != Blocks.GRASS) { + if (block instanceof IGrowable && !(block instanceof DoublePlantBlock) && !(block instanceof TallGrassBlock) && block != Blocks.GRASS_BLOCK) { + System.out.println(block); IGrowable growable = (IGrowable) block; if (growable.canGrow(world, plantPos, state, false)) { growable.grow((ServerWorld) world, world.rand, plantPos, state);