{
try
{
if (this.identity.getPack() instanceof FolderResourcePack)
{
FolderResourcePack frp = (FolderResourcePack) this.identity.getPack();
String folderName = frp.getPackName();
// XXX: getPackName might not be specified to return the folder name?
final File folder = new File(Minecraft.getMinecraft().mcDataDir, "resourcepacks/" + folderName);
if (folder.exists() && folder.isDirectory())