It shows your narrow minded understanding of world relationships. You don't understand the nature of the relationship between China and Pakistan. Our two people have friendly relations and have traded amicably for thousands of years since the record of history. Even if China solve its differences with India in the future, China is not going to turn against Pakistan for the sake of the relation with India, if that's the case China probably had done it in the past years as India has demanded China to severe its ties with Pakistan to improve the relations between the two large nations. China and Pakistan still will retain friendly relations as there are no reasons for the two countries to be enemies at least that is not in Chinese philosophy of neighbourly relationship. Unless someone like you who are Anti-China fanatic at all cost get into power in Pakistan, then the situation will be different, but with reasonable and rational Pakistanis in power, there is not likely.
Besides, China is totally different from the US, which wants to be the hegemony of the world with its will at all costs to other nations whereas China doesn't have that intention and ambition, Chinese approach to international relationships is totally different, China does not seek hegemony !