Fixed invalid forge download url

This commit is contained in:
keteZeng 2017-09-17 12:08:02 +08:00
parent 026986c956
commit 807f42ad65

View File

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