Fix coremods without a manifest crashing the game. Closes #181
This commit is contained in:
parent
796f70b545
commit
d3d4e7683c
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue