Fix unable to delete the version which failed to download

This commit is contained in:
huanghongxun
2019-03-05 19:37:37 +08:00
parent bf37db2cbe
commit 1eb4b1ca9e

View File

@@ -72,7 +72,7 @@ public class DefaultGameBuilder extends GameBuilder {
return libraryTask;
}).whenComplete((isDependentSucceeded, exception) -> {
if (!isDependentSucceeded)
dependencyManager.getGameRepository().getVersionRoot(name).delete();
dependencyManager.getGameRepository().removeVersionFromDisk(name);
});
}