Fix curse mod downloading

This commit is contained in:
huangyuhui
2018-06-10 20:05:36 +08:00
parent 630f164877
commit eb565285b2
5 changed files with 18 additions and 8 deletions

View File

@@ -113,7 +113,10 @@ public final class CurseInstallTask extends Task {
throw new IOException("Unable to delete mod file " + oldFile);
}
dependencies.add(new CurseCompletionTask(dependencyManager, name));
File root = repository.getVersionRoot(name);
FileUtils.writeText(new File(root, "manifest.json"), Constants.GSON.toJson(manifest));
dependencies.add(new CurseCompletionTask(dependencyManager, name, manifest));
dependencies.add(new MinecraftInstanceTask<>(zipFile, manifest.getOverrides(), manifest, MODPACK_TYPE, repository.getModpackConfiguration(name)));
}