Skip to content

Commit 9d8b59e

Browse files
committed
fix: 修复分类
1 parent 4b9ec54 commit 9d8b59e

File tree

8 files changed

+16
-6
lines changed

8 files changed

+16
-6
lines changed

FCL/src/main/java/com/tungsten/fcl/ui/download/InstallVersionPage.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ private List<RemoteVersion> loadVersions() {
8484
switch (it.getVersionType()) {
8585
case RELEASE:
8686
return checkRelease.isChecked();
87+
case PENDING:
88+
case UNOBFUSCATED:
8789
case SNAPSHOT:
8890
if (checkSnapShot.isChecked()) return true;
8991
else if (checkAprilFools.isChecked())

FCLCore/src/main/java/com/tungsten/fclcore/download/BMCLAPIDownloadProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public BMCLAPIDownloadProvider(String apiRoot) {
7878
pair("https://authlib-injector.yushi.moe", apiRoot + "/mirrors/authlib-injector"),
7979
pair("https://repo1.maven.org/maven2", "https://mirrors.cloud.tencent.com/nexus/repository/maven-public"),
8080
pair("https://repo.maven.apache.org/maven2", "https://mirrors.cloud.tencent.com/nexus/repository/maven-public"),
81-
pair("https://hmcl-dev.github.io/metadata/cleanroom", "https://alist.8mi.tech/d/mirror/HMCL-Metadata/Auto/cleanroom"),
81+
pair("https://hmcl.glavo.site/metadata/cleanroom", "https://alist.8mi.tech/d/mirror/HMCL-Metadata/Auto/cleanroom"),
8282
pair("https://zkitefly.github.io/unlisted-versions-of-minecraft", "https://alist.8mi.tech/d/mirror/unlisted-versions-of-minecraft/Auto")
8383
// https://github.com/mcmod-info-mirror/mcim-rust-api
8484
// pair("https://api.modrinth.com", "https://mod.mcimirror.top/modrinth"),

FCLCore/src/main/java/com/tungsten/fclcore/download/RemoteVersion.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ public enum Type {
125125
UNCATEGORIZED,
126126
RELEASE,
127127
SNAPSHOT,
128-
OLD
128+
OLD,
129+
PENDING,
130+
UNOBFUSCATED
129131
}
130132
}

FCLCore/src/main/java/com/tungsten/fclcore/download/cleanroom/CleanroomVersionList.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
public final class CleanroomVersionList extends VersionList<CleanroomRemoteVersion> {
3333
private final DownloadProvider downloadProvider;
34-
private static final String LOADER_LIST_URL = "https://hmcl-dev.github.io/metadata/cleanroom/index.json";
35-
private static final String INSTALLER_URL = "https://hmcl-dev.github.io/metadata/cleanroom/files/cleanroom-%s-installer.jar";
34+
private static final String LOADER_LIST_URL = "https://hmcl.glavo.site/metadata/cleanroom/index.json";
35+
private static final String INSTALLER_URL = "https://hmcl.glavo.site/metadata/cleanroom/files/cleanroom-%s-installer.jar";
3636

3737
public CleanroomVersionList(DownloadProvider downloadProvider) {
3838
this.downloadProvider = downloadProvider;

FCLCore/src/main/java/com/tungsten/fclcore/download/forge/ForgeVersionList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,5 @@ public CompletableFuture<?> refreshAsync() {
101101
});
102102
}
103103

104-
public static final String FORGE_LIST = "https://hmcl-dev.github.io/metadata/forge/";
104+
public static final String FORGE_LIST = "https://hmcl.glavo.site/metadata/forge/";
105105
}

FCLCore/src/main/java/com/tungsten/fclcore/download/game/GameRemoteVersion.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ private static Type getReleaseType(ReleaseType type) {
6363
return Type.SNAPSHOT;
6464
case UNKNOWN:
6565
return Type.UNCATEGORIZED;
66+
case PENDING:
67+
return Type.PENDING;
68+
case UNOBFUSCATED:
69+
return Type.UNOBFUSCATED;
6670
default:
6771
return Type.OLD;
6872
}

FCLCore/src/main/java/com/tungsten/fclcore/game/ReleaseType.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public enum ReleaseType {
2323
MODIFIED("modified"),
2424
OLD_BETA("old-beta"),
2525
OLD_ALPHA("old-alpha"),
26+
PENDING("pending"),
27+
UNOBFUSCATED("unobfuscated"),
2628
UNKNOWN("unknown");
2729

2830
private final String id;

FCLCore/src/main/java/com/tungsten/fclcore/util/versioning/GameVersionNumber.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public static VersionRange<GameVersionNumber> atMost(String maximum) {
104104
}
105105

106106
public boolean isAprilFools() {
107-
if (this instanceof Special) {
107+
if (this instanceof Special && !value.endsWith("_unobfuscated")) {
108108
String normalizedVersion = this.toNormalizedString();
109109
return !normalizedVersion.startsWith("1.") && !normalizedVersion.equals("13w12~")
110110
|| normalizedVersion.equals("1.RV-Pre1");

0 commit comments

Comments
 (0)