mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 00:07:45 +00:00
Fix mods without ModSide meta value.
This commit is contained in:
1 parent
9d0771b3d7
commit
b71caeb813
2 files changed
+2
-2
No files matched your search
@@ -364,7 +364,7 @@ public class CoreModManager {
|
||||
continue;
|
||||
|
||||
String modSide = mfAttributes.getValue(LibraryManager.MODSIDE);
|
||||
if (!"BOTH".equals(modSide) || FMLLaunchHandler.side().name().equals(modSide))
|
||||
if (modSide != null && !"BOTH".equals(modSide) && !FMLLaunchHandler.side().name().equals(modSide))
|
||||
{
|
||||
FMLLog.log.debug("Mod {} has ModSide meta-inf value {}, and we're {} It will be ignored", coreMod.getName(), modSide, FMLLaunchHandler.side.name());
|
||||
ignoredModFiles.add(coreMod.getName());
|
||||
|
||||
@@ -220,7 +220,7 @@ public class LibraryManager
|
||||
attrs = jar.getManifest().getMainAttributes();
|
||||
|
||||
String modSide = attrs.getValue(LibraryManager.MODSIDE);
|
||||
if (!"BOTH".equals(modSide) || FMLLaunchHandler.side().name().equals(modSide))
|
||||
if (modSide != null && !"BOTH".equals(modSide) && !FMLLaunchHandler.side().name().equals(modSide))
|
||||
return null;
|
||||
|
||||
if (attrs.containsKey(MODCONTAINSDEPS))
|
||||
|
||||
Reference in new issue
Block a user