Fix wrong grass block being used for comparisons (#5434)

This commit is contained in:
Merlin Addams authored and LexManos committed 2019-02-04 11:38:01 -08:00
1 parent 77dd9eb883
commit 87b67cb45a
4 files changed
+21 -3

No files matched your search

@@ -599,7 +599,7 @@ public interface IForgeBlock
*/
default void onPlantGrow(IBlockState state, IWorld world, BlockPos pos, BlockPos source)
{
if (this.getBlock() == Blocks.GRASS || this.getBlock() == Blocks.FARMLAND || this.getBlock() == Blocks.AIR)
if (this.getBlock() == Blocks.GRASS_BLOCK || this.getBlock() == Blocks.MYCELIUM || this.getBlock() == Blocks.FARMLAND || this.getBlock() == Blocks.AIR)
world.setBlockState(pos, Blocks.DIRT.getDefaultState(), 2);
}