Home›Java›Mods›rctapi fix
rctapi fix
ModsJava

rctapi fix

Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.

by Nogitsune974_ · on CurseForge

⬇ Download on CurseForge

The author built this one for Minecraft 1.21.1 on Fabric. On other versions it may install and then do nothing.

 


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:

What is affected?

This mod is a fork of rctapi 0.15.0-beta by hd42, modified under the GNU LGPL-3.0 license.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more