Fix coremods without a manifest crashing the game. Closes #181
This commit is contained in:
parent
796f70b545
commit
d3d4e7683c
|
@ -354,6 +354,11 @@ public class RelaunchLibraryManager
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
jar = new JarFile(coreMod);
|
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();
|
mfAttributes = jar.getManifest().getMainAttributes();
|
||||||
}
|
}
|
||||||
catch (IOException ioe)
|
catch (IOException ioe)
|
||||||
|
|
Loading…
Reference in New Issue