mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 00:38:16 +00:00
[BUGFIX] Would throw ClassCastException
This line would throw ClassCastException when starting the client.
This commit is contained in:
@@ -184,7 +184,7 @@ public class Core {
|
|||||||
try {
|
try {
|
||||||
if (br != null) {
|
if (br != null) {
|
||||||
JSONObject object = (JSONObject) WebUtil.getJsonParser().parse(br);
|
JSONObject object = (JSONObject) WebUtil.getJsonParser().parse(br);
|
||||||
boolean latest = Boolean.parseBoolean((String) object.get("result"));
|
boolean latest = (Boolean) object.get("result");
|
||||||
if (!latest) {
|
if (!latest) {
|
||||||
Directories.clearCache();
|
Directories.clearCache();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user