Don't forget that Japan is an ally of Taiwan.

Taiwan gets attacked then Japan gets involved then USA gets involved and then the ANZUS alliance gets activated.

I'm sure China does not want an Australian steel and gas embargo after all.