mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +01:00
fixed the plant boost effect affecting grass blocks
This commit is contained in:
parent
66874dc33e
commit
75cb0c98a8
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue