fix: "does not support loading the entire remote list"

This commit is contained in:
huanghongxun 2021-09-08 22:33:03 +08:00
parent e385a85755
commit 7adc517872
2 changed files with 3 additions and 3 deletions

View File

@ -39,12 +39,12 @@ public class MultipleSourceVersionList extends VersionList<RemoteVersion> {
@Override
public CompletableFuture<?> loadAsync() {
throw new UnsupportedOperationException("ForgeBMCLVersionList does not support loading the entire Forge remote version list.");
throw new UnsupportedOperationException("MultipleSourceVersionList does not support loading the entire remote version list.");
}
@Override
public CompletableFuture<?> refreshAsync() {
throw new UnsupportedOperationException("ForgeBMCLVersionList does not support loading the entire Forge remote version list.");
throw new UnsupportedOperationException("MultipleSourceVersionList does not support loading the entire remote version list.");
}
@Override

View File

@ -44,7 +44,7 @@ public final class VersionJsonDownloadTask extends Task<String> {
this.dependencyManager = dependencyManager;
this.gameVersionList = dependencyManager.getVersionList("game");
dependents.add(Task.fromCompletableFuture(gameVersionList.loadAsync()));
dependents.add(Task.fromCompletableFuture(gameVersionList.loadAsync(gameVersion)));
setSignificance(TaskSignificance.MODERATE);
}