mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 16:49:10 +00:00
[BUGFIX] Solve issue with checksum validation
This commit is contained in:
@@ -159,8 +159,7 @@ public class Core {
|
||||
String result;
|
||||
if ((result = WebUtil.getContents(String.format(Configuration.COMPARE_CHECKSUM_URL, "client", currentVersion.get()), "checksum=" + URLEncoder.encode(sb.toString(), "UTF-8"))) != null) {
|
||||
JSONObject object = (JSONObject) WebUtil.getJsonParser().parse(result);
|
||||
System.out.println(object.get("result"));
|
||||
return Boolean.parseBoolean((String) object.get("result"));
|
||||
return (boolean) object.get("result");
|
||||
}
|
||||
}
|
||||
} catch (NoSuchAlgorithmException | ParseException | IOException | URISyntaxException e) {
|
||||
|
||||
Reference in New Issue
Block a user