This commit is contained in:
gomeow
2013-05-05 22:02:41 -07:00
parent 457aad54f9
commit bb7c27412a
@@ -35,14 +35,14 @@ public class Updater extends PlayerVaults {
} }
} }
public boolean getUpdate() throws IOException { public boolean getUpdate(String v) throws IOException {
JSONObject json; JSONObject json;
try { try {
json = getInfo(); json = getInfo();
String version = json.getString("dbo_version"); String version = json.getString("dbo_version");
String link = json.getString("link"); String link = json.getString("link");
PlayerVaults.LINK = link; PlayerVaults.LINK = link;
if(!version.equalsIgnoreCase(super.getDescription().getVersion())) { if(!version.equalsIgnoreCase(v)) {
return true; return true;
} }
} catch(JSONException e) { } catch(JSONException e) {