Mod Settings

Mod Settings

41.5k Downloads

Crash when other mods bundle old ModMenu API

the-unheard opened this issue ยท 4 comments

commented
Caused by: java.lang.NoClassDefFoundError: io/github/prospector/modmenu/api/ModMenuApi

This is a bit odd, since the 1.18.1 version should have no more references to the old io.github.prospector API...

commented

@the-unheard Can you reproduce the crash with fewer mods installed? I'm guessing some other mod might bundle a bad version of the Mod Menu API.

If you only install ModSettings, or only install ModSettings and Mod Menu -- does it still crash?

commented

I can confirm the Crash with the following Mods, every Mod + Fabric + Minecraft latest version:

They all use Auto Config Updated API (the one Mod is it), which uses in the newest version, the old Mod Menu API, on their GitHub Repo it seems already fixed (https://github.com/shedaniel/AutoConfig/pull/32/files)

commented

Ok, so even though the old API is deprecated, some mods still use it, and this causes a crash. I could change Mod Settings to just not crash, but that seems pointless, so I have restored support for the old API. Guess we'll actually be stuck with it forever...