From 6801092113a022ba75e39606ffa9a0fc57cf8ba0 Mon Sep 17 00:00:00 2001 From: "Aidan C. Brady" Date: Thu, 12 Mar 2015 23:17:25 -0500 Subject: [PATCH] Fixed data fetch --- src/main/java/mekanism/common/util/MekanismUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/mekanism/common/util/MekanismUtils.java b/src/main/java/mekanism/common/util/MekanismUtils.java index db63d14f9..2b0612274 100644 --- a/src/main/java/mekanism/common/util/MekanismUtils.java +++ b/src/main/java/mekanism/common/util/MekanismUtils.java @@ -155,8 +155,8 @@ public final class MekanismUtils */ public static String getLatestVersion() { - String[] text = merge(getHTML("http://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]; + String[] text = merge(getHTML("https://dl.dropbox.com/u/90411166/Mod%20Versions/Mekanism.txt")).split(":"); + if(text.length > 1 && !text[0].contains("UTF-8") && !text[0].contains("HTML") && !text[0].contains("http")) return text[0]; return "null"; } @@ -166,7 +166,7 @@ public final class MekanismUtils */ 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]; return "null"; }