Fixed melons/pumpkins for dirt

This commit is contained in:
Forstride 2016-08-08 13:16:43 -04:00
parent 14105a4645
commit ab6e0ca3fd

View file

@ -134,6 +134,11 @@ public class BlockBOPDirt extends Block implements IBOPBlock, ISustainsPlantType
@Override @Override
public boolean canSustainPlant(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing direction, net.minecraftforge.common.IPlantable plantable) public boolean canSustainPlant(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing direction, net.minecraftforge.common.IPlantable plantable)
{ {
if (plantable == Blocks.MELON_STEM || plantable == Blocks.PUMPKIN_STEM)
{
return true;
}
return this.canSustainPlantType(world, pos, plantable.getPlantType(world, pos.offset(direction))); return this.canSustainPlantType(world, pos, plantable.getPlantType(world, pos.offset(direction)));
} }