Skip to content

Commit

Permalink
Special handle non-coremod mixin mods
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Jun 18, 2024
1 parent bf8b243 commit 4d6a0a3
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,13 @@ private static void discoverCoreMods(File mcDir, LaunchClassLoader classLoader)
{
// Not a coremod
FMLLog.log.debug("Not found coremod data in {}", coreMod.getName());
if (!MixinServiceLaunchWrapper.MIXIN_TWEAKER_CLASS.equals(cascadedTweaker)) {
continue;
if (MixinServiceLaunchWrapper.MIXIN_TWEAKER_CLASS.equals(cascadedTweaker) && mfAttributes.containsKey(COREMODCONTAINSFMLMOD)) {
FMLLog.log.info("Found FMLCorePluginContainsFMLMod marker in mixin container {}.",
coreMod.getName());
candidateModFiles.add(coreMod.getName());
ignoredModFiles.remove(coreMod.getName());
}
continue;
}
}
catch (IOException ioe)
Expand Down

0 comments on commit 4d6a0a3

Please sign in to comment.