Silence BeaconEffectEvent, swallow exception in version checking

This commit is contained in:
Zach Brown
2016-03-03 04:48:46 -06:00
parent d83453116b
commit 3a71da0bd3
2 changed files with 58 additions and 1 deletions

View File

@@ -62,12 +62,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
- JSONObject obj = (JSONObject) new JSONParser().parse(reader);
- return ((Number) obj.get("totalCount")).intValue();
- } catch (ParseException ex) {
- ex.printStackTrace();
+ // Paper start
+ int newVer = Integer.decode(reader.readLine());
+ int currentVer = Integer.decode(currentVerInt);
+ return newVer - currentVer;
+ } catch (NumberFormatException ex) {
ex.printStackTrace();
+ //ex.printStackTrace();
+ // Paper end
return -1;
} finally {