Exactly. ~90% of Iran's crude went to China. The oil revenue was ~75% of Iran's budget. Iran has been a significant area of military development for China, serving somewhat as a forward base.
However... higher oil prices also increase energy prices across the board, and China's energy sector is dominant in renewables. I think they're more than happy to have the competing energy sources become even more expensive.