diff --git a/Spigot-API-Patches/Check-PaperSpigot-versions.patch b/Spigot-API-Patches/Check-PaperSpigot-versions.patch index 81841b4509..0d7152b469 100644 --- a/Spigot-API-Patches/Check-PaperSpigot-versions.patch +++ b/Spigot-API-Patches/Check-PaperSpigot-versions.patch @@ -47,13 +47,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - JSONObject obj = (JSONObject) new JSONParser().parse(reader); - return ((Number) obj.get("totalCount")).intValue(); - } catch (ParseException ex) { +- ex.printStackTrace(); + // PaperSpigot start + int newVer = Integer.decode(reader.readLine()); + int currentVer = Integer.decode(currentVerInt); + return newVer - currentVer; + } catch (NumberFormatException ex) { ++ //ex.printStackTrace(); + // PaperSpigot end - ex.printStackTrace(); return -1; } finally { + reader.close(); -- \ No newline at end of file