public void onSuccess(File par1File) {
   if (TexturePackList.func_77301_a(this.field_76171_a)) {
     TexturePackList.func_77303_a(
         this.field_76171_a,
         new TexturePackCustom(
             TexturePackList.func_77291_a(this.field_76171_a, par1File), par1File));
     TexturePackList.getMinecraft(this.field_76171_a).func_71395_y();
   }
 }
 public void onSuccess(File par1File) {
   if (TexturePackList.func_77301_a(this.texturePacks)) {
     TexturePackList.setSelectedTexturePack(
         this.texturePacks,
         new TexturePackCustom(
             TexturePackList.generateTexturePackID(this.texturePacks, par1File), par1File));
     TexturePackList.getMinecraft(this.texturePacks).scheduleTexturePackRefresh();
   }
 }