Original sentence: During Ming's early contentious relations with Joseon, when there were disputes such as competition for influence over the Jurchens in Manchuria, Korean officials were even flogged by Korean-born Ming eunuch ambassadors when their demands were not met.Relations between Ming China and Joseon Korea improved dramatically and became much more amicable and mutually profitable during Yongle's reign, who also had a strong penchant for Korean cuisine and women, as did his grandson, the Xuande Emperor.There were Korean, Jurchen, Mongol, Central Asian, and Vietnamese eunuchs under the Yongle Emperor, including Mongol eunuchs who served him while he was the Prince of Yan
Edited sentence: There were  Jurchen, Mongol, Central Asian, and Vietnamese eunuchs under the Yongle Emperor, including Mongol eunuchs who served him while he was the Prince of Yan