mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-03-31 18:10:26 +08:00
Mojang Download Source: https -> http
This commit is contained in:
parent
e6c954ae0d
commit
bba82f5e24
2
HMCL/proguard.pro
vendored
2
HMCL/proguard.pro
vendored
@ -72,7 +72,7 @@
|
||||
-keepclassmembers class org.jackhuang.hellominecraft.launcher.utils.installers.liteloader.LiteLoaderVersion { public <fields>; }
|
||||
-keepclassmembers class org.jackhuang.hellominecraft.launcher.utils.installers.liteloader.LiteLoaderVersionsMeta { public <fields>; }
|
||||
|
||||
-keepclassmembers class org.jackhuang.hellominecraft.utils.JdkVersion { public <fields>; }
|
||||
-keepclassmembers class org.jackhuang.hellominecraft.utils.JdkVersion { private <fields>; }
|
||||
|
||||
-keepclassmembers class org.jackhuang.hellominecraft.version.MinecraftRemoteLatestVersion { public <fields>; }
|
||||
-keepclassmembers class org.jackhuang.hellominecraft.version.MinecraftRemoteVersion { public <fields>; }
|
||||
|
@ -54,17 +54,17 @@ public class MojangDownloadProvider implements IDownloadProvider {
|
||||
|
||||
@Override
|
||||
public String getVersionsDownloadURL() {
|
||||
return "https://s3.amazonaws.com/Minecraft.Download/versions/";
|
||||
return "http://s3.amazonaws.com/Minecraft.Download/versions/";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIndexesDownloadURL() {
|
||||
return "https://s3.amazonaws.com/Minecraft.Download/indexes/";
|
||||
return "http://s3.amazonaws.com/Minecraft.Download/indexes/";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getVersionsListDownloadURL() {
|
||||
return "https://s3.amazonaws.com/Minecraft.Download/versions/versions.json";
|
||||
return "http://s3.amazonaws.com/Minecraft.Download/versions/versions.json";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -50,8 +50,8 @@ public class ForgeBMCLVersionList extends InstallerVersionList {
|
||||
@Override
|
||||
public void refreshList(String[] neededVersions) throws Exception {
|
||||
if(versionMap == null) {
|
||||
versionMap = new HashMap<String, List<InstallerVersion>>();
|
||||
versions = new ArrayList<InstallerVersion>();
|
||||
versionMap = new HashMap<>();
|
||||
versions = new ArrayList<>();
|
||||
}
|
||||
|
||||
for (String x : neededVersions) {
|
||||
@ -69,13 +69,13 @@ public class ForgeBMCLVersionList extends InstallerVersionList {
|
||||
|
||||
List<InstallerVersion> al = ArrayUtils.tryGetMapWithList(versionMap, StrUtils.formatVersion(v.minecraft));
|
||||
iv.changelog = v.downloads.changelog;
|
||||
iv.installer = "http://bmclapi.bangbang93.com/forge/getforge/" + iv.mcVersion + "/" + iv.selfVersion;
|
||||
iv.installer = ArrayUtils.getEnd(v.downloads.installer);
|
||||
iv.universal = ArrayUtils.getEnd(v.downloads.universal);
|
||||
al.add(iv);
|
||||
versions.add(iv);
|
||||
}
|
||||
} catch(JsonSyntaxException e) {
|
||||
HMCLog.warn("Failed to parse BMCLAPI response.", e);
|
||||
HMCLog.warn("Failed to parse BMCLAPI2 response.", e);
|
||||
}
|
||||
}
|
||||
Collections.sort(versions, new InstallerVersionComparator());
|
||||
|
Loading…
x
Reference in New Issue
Block a user