Fix NPE when no FMLAT is defined

This commit is contained in:
cpw 2014-06-25 09:11:07 -04:00
parent 380027daf0
commit f5d8e85fc5
2 changed files with 2 additions and 1 deletions

View file

@ -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);

View file

@ -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);