From 29edd242cd7a1fadedf4fb874ea8bbd4e643bffa Mon Sep 17 00:00:00 2001 From: Christian Date: Sun, 10 Mar 2013 01:05:31 -0500 Subject: [PATCH] Fix coremods without a manifest crashing the game. Closes #181 --- common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java b/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java index 178f354ed0..169a316796 100644 --- a/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java +++ b/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java @@ -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)