Switch to use oschina instead of minecraftforge maven

This commit is contained in:
huangyuhui 2016-02-18 14:28:02 +08:00
parent 61a179ba67
commit 84c6723adc

View File

@ -76,7 +76,7 @@ public class MojangDownloadProvider extends IDownloadProvider {
public String getParsedLibraryDownloadURL(String str) {
if (str == null)
return null;
else if (str.contains("typesafe"))
else if (str.contains("forge"))
if (SupportedLocales.NOW_LOCALE.self == Locale.CHINA)
return str.replace("http://files.minecraftforge.net/maven", "http://maven.oschina.net/content/groups/public");
else