介绍
RCTAPI Academy Fix
This is a compatibility patch for the Radical Cobblemon Trainers API (rctapi) mod, designed specifically for modpacks using Abes Hutt’s Cobblemon fork (branch academy-1.7.1).
What does this mod do?
Abes Hutt’s Cobblemon fork modified the signature of BattleRegistry.startBattle() by adding an optional Function2 callback parameter. This change breaks compatibility with any mod that calls this method using the original signature, causing a server crash whenever a battle is initiated.
This fix patches BattleManager.startBattle() inside rctapi to call BattleRegistry.startBattle$default() instead, passing the appropriate Kotlin default parameter mask. This makes rctapi fully compatible with the modified Cobblemon fork without altering any gameplay behavior.
Who needs this?
Any modpack that includes:
- Abes Hutt’s Cobblemon fork (academy-1.7.1)
- rctapi 0.15.0-beta
- Any mod that depends on rctapi, such as Cobblemon Battle Tower or Rad Gyms
What is affected?
- Cobblemon Battle Tower battles will no longer crash the server
- Rad Gyms battles will no longer crash the server
- All other rctapi functionality remains unchanged
This mod is a fork of rctapi 0.15.0-beta by hd42, modified under the GNU LGPL-3.0 license.
常见问题
rctapi fix 支持哪些 Minecraft 版本?
rctapi fix 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
rctapi fix 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分