Fix coremods without a manifest crashing the game. Closes #181

This commit is contained in:
Christian 2013-03-10 01:05:31 -05:00
parent 796f70b545
commit d3d4e7683c

View file

@ -354,6 +354,11 @@ public class RelaunchLibraryManager
try
{
jar = new JarFile(coreMod);
if (jar.getManifest() == null)
{
FMLRelaunchLog.warning("Found an un-manifested jar file in the coremods folder : %s, it will be ignored.", coreMod.getName());
continue;
}
mfAttributes = jar.getManifest().getMainAttributes();
}
catch (IOException ioe)