HashMap<String, Object> map = new HashMap<String, Object>();
map.put("modid", "FlansMod");
map.put("name", "Flan's Mod : " + file.getName());
map.put("version", "1");
FMLModContainer container = new FMLModContainer("com.flansmod.common.FlansMod", new ModCandidate(file, file, file.isDirectory() ? ContainerType.DIR : ContainerType.JAR), map);
container.bindMetadata(MetadataCollection.from(null, ""));
FMLClientHandler.instance().addModAsResource(container);
} catch (Exception e)
{
FlansMod.log("Failed to load images for content pack : " + file.getName());