fix: 更改模组加载器版本时下载依赖项任务未正确归类 (#6777)

This commit is contained in:
辞庐 authored and GitHub committed 2026-08-30 22:01:22 +08:00
1 parent 5475acdc9e
commit c86c19a7f9
1 file changed
+2 -1
@@ -74,9 +74,10 @@ public final class UpdateInstallerWizardProvider implements WizardProvider {
var hints = new ArrayList<Task.StagesHint>();
for (Object value : settings.asStringMap().values()) {
if (value instanceof RemoteVersion remoteVersion) {
hints.add(new Task.StagesHint("hmcl.install.libraries"));
hints.add(new Task.StagesHint(String.format("hmcl.install.%s:%s", remoteVersion.getComponentType().getPatchId(), remoteVersion.getSelfVersion())));
if (remoteVersion.getComponentType() == GameComponentType.GAME) {
hints.add(new Task.StagesHint("hmcl.install.libraries"));
hints.add(new Task.StagesHint("hmcl.install.assets"));
}
}