But they are pushing their economy towards renewables, and by the 2040s the majority of China might be powered by alternatives to oil, leaving them enough to keep their military going without disrupting manufacturing.
Pipelines also have the added bonus that if the US tries to sabotage them, they've just attacked a bunch of neutral countries. Not a good look.
Granted they just used Bulgaria’s airspace but the feeling was “we don’t give a F*ck what you think, deal with it”. Bulgaria is now _in_ NATO itself, but it wasn’t back then. There was a strong pro Russian (anti Nato) sentiment and I think that war in particular showed a lot of people what a precarious geopolitical position that actually was.
Also, China is in bad terms with almost every other neighbor it has (territory disputes with almost every one).. and they will be glad to see it humbled a notch or two and will not help.