From 4612a6de1afaa7132ab8febfed708c90b50fb718 Mon Sep 17 00:00:00 2001 From: Zkitefly <2573874409@qq.com> Date: Tue, 27 Aug 2024 20:33:56 +0800 Subject: [PATCH] Update InstallerListPage.java --- .../org/jackhuang/hmcl/ui/versions/InstallerListPage.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/InstallerListPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/InstallerListPage.java index aea2967a7e..cca80f4af6 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/InstallerListPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/InstallerListPage.java @@ -79,6 +79,12 @@ public void loadVersion(Profile profile, String versionId) { // Conventional libraries: game, fabric, forge, neoforge, liteloader, optifine for (InstallerItem item : group.getLibraries()) { String libraryId = item.getLibraryId(); + + // Skip fabric-api and quilt-api + if (libraryId.contains("fabric-api") || libraryId.contains("quilt-api")) { + continue; + } + String libraryVersion = analyzer.getVersion(libraryId).orElse(null); if (libraryVersion != null) {