fix: "does not support loading the entire remote list"
This commit is contained in:
@@ -39,12 +39,12 @@ public class MultipleSourceVersionList extends VersionList<RemoteVersion> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CompletableFuture<?> loadAsync() {
|
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
|
@Override
|
||||||
public CompletableFuture<?> refreshAsync() {
|
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
|
@Override
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public final class VersionJsonDownloadTask extends Task<String> {
|
|||||||
this.dependencyManager = dependencyManager;
|
this.dependencyManager = dependencyManager;
|
||||||
this.gameVersionList = dependencyManager.getVersionList("game");
|
this.gameVersionList = dependencyManager.getVersionList("game");
|
||||||
|
|
||||||
dependents.add(Task.fromCompletableFuture(gameVersionList.loadAsync()));
|
dependents.add(Task.fromCompletableFuture(gameVersionList.loadAsync(gameVersion)));
|
||||||
|
|
||||||
setSignificance(TaskSignificance.MODERATE);
|
setSignificance(TaskSignificance.MODERATE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user