mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-03-07 17:36:52 +08:00
fix: "does not support loading the entire remote list"
This commit is contained in:
parent
e385a85755
commit
7adc517872
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user