mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 10:34:49 +00:00
Fix NPE when no FMLAT is defined
This commit is contained in:
1 parent
8a240ec3c7
commit
0cd5ef6bb7
2 files changed
+2
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user