Make more noise when people screw up mod downloading and put .jar.zip in their mod folders.

This commit is contained in:
Christian 2014-07-30 12:38:55 -02:30
parent f8b5ae45f1
commit 14f7bb44d9
1 changed files with 16 additions and 0 deletions

View File

@ -223,6 +223,22 @@ public class CoreModManager {
return name.endsWith(".jar");
}
};
FilenameFilter derpfilter = new FilenameFilter() {
@Override
public boolean accept(File dir, String name)
{
return name.endsWith(".jar.zip");
}
};
File[] derplist = coreMods.listFiles(derpfilter);
if (derplist != null && derplist.length > 0)
{
FMLRelaunchLog.severe("FML has detected several badly downloaded jar files, which have been named as zip files. You probably need to download them again, or they may not work properly");
for (File f : derplist)
{
FMLRelaunchLog.severe("Problem file : %s", f.getName());
}
}
File[] coreModList = coreMods.listFiles(ff);
File versionedModDir = new File(coreMods, FMLInjectionData.mccversion);
if (versionedModDir.isDirectory())