If BD wants to attack Myanmar to avenge the Rohyinga, China will not intervene but if BD tries to drag USA into the affair then China will smack BD silly.
In the future, countries that choose the wrong side will be destroyed and countries that choose the right side will survive. Bangladesh is choosing the wrong side. Other Muslim countries are not so stupid.
China needs to decide whether it is okay for governments to slaughter people on the basis of ethnicity.
Malaysia, Singapore, Indonesia have Chinese minorities.
It is a balance between non-interference in the internal affairs of a country and safeguards against outright slaughter