diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/TaskListPane.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/TaskListPane.java index 319c60653..6178dc837 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/TaskListPane.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/TaskListPane.java @@ -37,6 +37,8 @@ import org.jackhuang.hmcl.download.game.GameInstallTask; import org.jackhuang.hmcl.download.java.JavaDownloadTask; import org.jackhuang.hmcl.download.liteloader.LiteLoaderInstallTask; import org.jackhuang.hmcl.download.optifine.OptiFineInstallTask; +import org.jackhuang.hmcl.download.quilt.QuiltAPIInstallTask; +import org.jackhuang.hmcl.download.quilt.QuiltInstallTask; import org.jackhuang.hmcl.game.HMCLModpackInstallTask; import org.jackhuang.hmcl.mod.MinecraftInstanceTask; import org.jackhuang.hmcl.mod.ModpackInstallTask; @@ -129,6 +131,10 @@ public final class TaskListPane extends StackPane { task.setName(i18n("install.installer.install", i18n("install.installer.fabric"))); } else if (task instanceof FabricAPIInstallTask) { task.setName(i18n("install.installer.install", i18n("install.installer.fabric-api"))); + } else if (task instanceof QuiltInstallTask) { + task.setName(i18n("install.installer.install", i18n("install.installer.quilt"))); + } else if (task instanceof QuiltAPIInstallTask) { + task.setName(i18n("install.installer.install", i18n("install.installer.quilt-api"))); } else if (task instanceof CurseCompletionTask || task instanceof ModrinthCompletionTask || task instanceof ServerModpackCompletionTask || task instanceof McbbsModpackCompletionTask) { task.setName(i18n("modpack.completion")); } else if (task instanceof ModpackInstallTask) { diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/LibraryAnalyzer.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/LibraryAnalyzer.java index 77e9bdf7b..bca60404b 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/LibraryAnalyzer.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/LibraryAnalyzer.java @@ -112,7 +112,7 @@ public final class LibraryAnalyzer implements Iterable { addons.add(new ServerModpackManifest.Addon(OPTIFINE.getPatchId(), optifineVersion))); analyzer.getVersion(FABRIC).ifPresent(fabricVersion -> addons.add(new ServerModpackManifest.Addon(FABRIC.getPatchId(), fabricVersion))); + analyzer.getVersion(QUILT).ifPresent(quiltVersion -> + addons.add(new ServerModpackManifest.Addon(QUILT.getPatchId(), quiltVersion))); ServerModpackManifest manifest = new ServerModpackManifest(exportInfo.getName(), exportInfo.getAuthor(), exportInfo.getVersion(), exportInfo.getDescription(), StringUtils.removeSuffix(exportInfo.getFileApi(), "/"), files, addons); zip.putTextFile(JsonUtils.GSON.toJson(manifest), "server-manifest.json"); }