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.