No country is perfect and China is far away from it - but so are a bunch of other countries who call China out. Industrial nations have had more than 30 years to put out good numbers for green energy. Nuclear, wind, and hydro have been around for a long time. However those nations instead stayed at the top of the polluters and emitters lists - and they are still there.
I’m sure capitalists will put the needs of the people first any day now. I’m sure it’s just a coincidence the communists are blowing past everyone else in renewables, and general quality of life.
Their panels will blot out the sun. Their hydro-electric dams shall dry up the seas. Their wind turbines will choke them of air. Even the ground beneath their very feet aren't safe, as the geothermal power plants will freeze the land below them. Taiwan will be begging for them to switch back to coal by the time China is done with them.
Blockading the Malacca Strait isn't a worry for China when domestic production and Russian inports fill the gap.All of this green energy helps tremendoualy for keeping the country ticking along during a time of war.
Energy security for China is the real benefit here, it'a nothing to do with being environmental.