mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-12-27 07:10:41 +08:00
Fixed invalid forge download url
This commit is contained in:
parent
026986c956
commit
807f42ad65
@ -44,7 +44,7 @@ object MojangDownloadProvider : DownloadProvider() {
|
||||
}
|
||||
|
||||
override fun injectURL(baseURL: String): String {
|
||||
if (baseURL.endsWith("net/minecraftforge/forge/json"))
|
||||
if (baseURL.contains("net/minecraftforge/forge"))
|
||||
return baseURL
|
||||
else
|
||||
return baseURL.replace("http://files.minecraftforge.net/maven", "http://ftb.cursecdn.com/FTB2/maven")
|
||||
|
Loading…
Reference in New Issue
Block a user