diff --git a/fml/src/main/java/cpw/mods/fml/relauncher/CoreModManager.java b/fml/src/main/java/cpw/mods/fml/relauncher/CoreModManager.java index 096cb2f5cf..fe8b48a303 100644 --- a/fml/src/main/java/cpw/mods/fml/relauncher/CoreModManager.java +++ b/fml/src/main/java/cpw/mods/fml/relauncher/CoreModManager.java @@ -299,7 +299,14 @@ public class CoreModManager { loadedCoremods.add(coreMod.getName()); continue; } + List modTypes = mfAttributes.containsKey(MODTYPE) ? Arrays.asList(mfAttributes.getValue(MODTYPE).split(",")) : Collections.emptyList(); + if (!modTypes.contains("FML")) + { + FMLRelaunchLog.fine("Adding %s to the list of things to skip. It is not an FML mod, it has types %s", coreMod.getName(), modTypes); + loadedCoremods.add(coreMod.getName()); + continue; + } String fmlCorePlugin = mfAttributes.getValue("FMLCorePlugin"); if (fmlCorePlugin == null) { @@ -308,11 +315,6 @@ public class CoreModManager { continue; } // Support things that are mod jars, but not FML mod jars - else if (mfAttributes.containsKey(MODTYPE) && !"FML".equals(mfAttributes.getValue(MODTYPE))) - { - FMLRelaunchLog.fine("Adding %s to the list of things to skip. It is not an FML mod, it is type %s", coreMod.getName(), mfAttributes.getValue(MODTYPE)); - loadedCoremods.add(coreMod.getName()); - } try { classLoader.addURL(coreMod.toURI().toURL());