Mojang Download Source: https -> http

This commit is contained in:
huanghongxun 2015-06-29 18:17:27 +08:00
parent e6c954ae0d
commit bba82f5e24
3 changed files with 8 additions and 8 deletions

2
HMCL/proguard.pro vendored
View File

@ -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>; }

View File

@ -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

View File

@ -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());