Russia produces oil and there is a land route.
China gets 60+% oil their oil from the Persian Gulf through the Straits of Malacca. Russian production is falling because the Western companies that used to maintain their equipment have all left. It’s an unpleasant situation for China, but they have figured it out, and much as they hate it they will behave.