promotional bannermobile promotional banner

rctapi fix

a fix for rctapi
Back to Files

rctapi-fabric-1.21.1-0.15.0-beta-academyfix.jar

File namerctapi-fabric-1.21.1-0.15.0-beta-academyfix.jar
Uploaded
Apr 19, 2026
Downloads
3.6K
Size
225.6 KB
Mod Loaders
Fabric
File ID
7952228
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:rctapi-fix-1519100:7952228"

Learn more about Curse Maven

What's new

 


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.

This mod has no additional files