Fix NPE when no FMLAT is defined
This commit is contained in:
parent
380027daf0
commit
f5d8e85fc5
2 changed files with 2 additions and 1 deletions
|
@ -110,6 +110,7 @@ public class AccessTransformer implements IClassTransformer
|
|||
{
|
||||
Manifest manifest = jar.getManifest();
|
||||
String atList = manifest.getMainAttributes().getValue("FMLAT");
|
||||
if (atList == null) return;
|
||||
for (String at : atList.split(" "))
|
||||
{
|
||||
JarEntry jarEntry = jar.getJarEntry("META-INF/"+at);
|
||||
|
|
|
@ -243,7 +243,7 @@ public class CoreModManager {
|
|||
jar = new JarFile(coreMod);
|
||||
if (jar.getManifest() == null)
|
||||
{
|
||||
// Not a coremod
|
||||
// Not a coremod and no access transformer list
|
||||
continue;
|
||||
}
|
||||
ModAccessTransformer.addJar(jar);
|
||||
|
|
Loading…
Reference in a new issue