Posted March 31, 20232 yr Hey guys, I'm trying to write an `IMixinConfigPlugin` for a mod I'm writing that more or less just handles integration between a few different mods. I'd like it to only load certain Mixins when the mod they're intended for exists, but it seems that `ModList` is not initialized at that point in the launch. Or at least, `ModList.get()` returns null. Searching on github I could only find code that calls forge code that no longer exists, or are for a different modloader. So my question is, is there any way for me to tell if another mod exists, at the time `IMixinConfigPlugin.shouldApplyMixin()` is called? Edited March 31, 20232 yr by praryboy solved it
March 31, 20232 yr Author Found the answer, so I'll post it here for future me's LoadingModList.get().getModFileById(modid) != null works instead of ModList.get().isLoaded(modid)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.