China has many friends, including Indonesia, which consistently provides resources for battery manufacturing. Nickel is a key ingredient in battery manufacturing, and by 2022, 85% of our nickel exports were going to China, partly to meet battery manufacturing needs.
Countries don't have friends.
You might need a little insight what was:
https://en.wikipedia.org/wiki/May_1998_riots_of_Indonesia