mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix wrong grass block being used for comparisons (#5434)
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user