LeavesMC / Leaves

Fork of Paper aimed at repairing broken vanilla properties.
https://leavesmc.org
Other
393 stars 40 forks source link

Fix and modify Botapi #245

Closed Lumine1909 closed 3 months ago

Lumine1909 commented 3 months ago

所有的更改:

  1. Consumer改用Java提供的,而非bkapi中的deprecated版本
  2. 删除了CreateEvent构造方法中的async,因为这个事件只有可能被同步调用
  3. 修改了BotManager#createBot中的方法,现在可以在skin String arr或 skin name中任选其一传入,并都提供了bot consumer,使用skin arr时可以直接获取Bot实例
  4. 合并了ServerBot中的createSync和createAsync方法,这两个方法的区别只在于是否从mojang api获取皮肤。之前的方案容易产生歧义且难以使用
Lumine1909 commented 3 months ago

有没有办法把这些commit squash一下 看着好难受(

Bluemangoo commented 3 months ago

你下次更新上游用 git rebase upstream/dev/1.21 就好了。

已经有的你可以 rebase -i

xiao-k233 commented 3 months ago

历史包袱就是这么来的(