fixed the plant boost effect affecting grass blocks

This commit is contained in:
Ellpeck 2020-02-08 13:19:38 +01:00
parent 66874dc33e
commit 75cb0c98a8

View file

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