mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-11-27 06:10:08 +08:00
Fix
This commit is contained in:
parent
84c6723adc
commit
bef6a2d61b
@ -76,7 +76,7 @@ public class MojangDownloadProvider extends IDownloadProvider {
|
|||||||
public String getParsedLibraryDownloadURL(String str) {
|
public String getParsedLibraryDownloadURL(String str) {
|
||||||
if (str == null)
|
if (str == null)
|
||||||
return null;
|
return null;
|
||||||
else if (str.contains("forge"))
|
else if (str.contains("typesafe") || str.contains("scala"))
|
||||||
if (SupportedLocales.NOW_LOCALE.self == Locale.CHINA)
|
if (SupportedLocales.NOW_LOCALE.self == Locale.CHINA)
|
||||||
return str.replace("http://files.minecraftforge.net/maven", "http://maven.oschina.net/content/groups/public");
|
return str.replace("http://files.minecraftforge.net/maven", "http://maven.oschina.net/content/groups/public");
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user