Fixed data fetch
This commit is contained in:
parent
f9c10d9012
commit
6801092113
1 changed files with 3 additions and 3 deletions
|
@ -155,8 +155,8 @@ public final class MekanismUtils
|
||||||
*/
|
*/
|
||||||
public static String getLatestVersion()
|
public static String getLatestVersion()
|
||||||
{
|
{
|
||||||
String[] text = merge(getHTML("http://dl.dropbox.com/u/90411166/Mod%20Versions/Mekanism.txt")).split(":");
|
String[] text = merge(getHTML("https://dl.dropbox.com/u/90411166/Mod%20Versions/Mekanism.txt")).split(":");
|
||||||
if(!text[0].contains("UTF-8") && !text[0].contains("HTML") && !text[0].contains("http")) return text[0];
|
if(text.length > 1 && !text[0].contains("UTF-8") && !text[0].contains("HTML") && !text[0].contains("http")) return text[0];
|
||||||
return "null";
|
return "null";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ public final class MekanismUtils
|
||||||
*/
|
*/
|
||||||
public static String getRecentNews()
|
public static String getRecentNews()
|
||||||
{
|
{
|
||||||
String[] text = merge(getHTML("http://dl.dropbox.com/u/90411166/Mod%20Versions/Mekanism.txt")).split(":");
|
String[] text = merge(getHTML("https://dl.dropbox.com/u/90411166/Mod%20Versions/Mekanism.txt")).split(":");
|
||||||
if(text.length > 1 && !text[1].contains("UTF-8") && !text[1].contains("HTML") && !text[1].contains("http")) return text[1];
|
if(text.length > 1 && !text[1].contains("UTF-8") && !text[1].contains("HTML") && !text[1].contains("http")) return text[1];
|
||||||
return "null";
|
return "null";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue