mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-21 15:23:50 -07:00
Silence BeaconEffectEvent, swallow exception in version checking
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user