China has sold military hardware to Iran in exchange for oil. They also proposed their help for a de-escalation plan to Pakistan if needed, letting regional powers handle the issue and never presented themselve as the only solution (They did the same for Turkye and the Ukraine war).
I can name plenty of flaw and issues i saw in China, plenty of foreign policy i find dangerous, but you people make me want to defend them every time with your uncharitable opinions. China "do nothing, win" strategy is even true on the internet ffs.