fix: cannot display all game versions in some cases of DownloadPage. Closes #1007.

This commit is contained in:
huanghongxun
2021-09-12 01:02:16 +08:00
parent 97f08bf74e
commit d7f5109a65
13 changed files with 320 additions and 42 deletions

View File

@@ -192,5 +192,13 @@ public final class ModManager {
return getModsDirectory().resolve(fileName);
}
public static String getMcmodUrl(String mcmodId) {
return String.format("https://www.mcmod.cn/class/%s.html", mcmodId);
}
public static String getMcbbsUrl(String mcbbsId) {
return String.format("https://www.mcbbs.net/thread-%s-1-1.html", mcbbsId);
}
public static final String DISABLED_EXTENSION = ".disabled";
}