We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141de3e commit 25dac5bCopy full SHA for 25dac5b
bukkit/src/main/java/io/github/rothes/protocolstringreplacer/Updater.java
@@ -125,6 +125,8 @@ private String getJson(String domain, int tryTime) {
125
for (String line = reader.readLine(); line != null; line = reader.readLine()) {
126
jsonBuilder.append(line).append("\n");
127
}
128
+ // noinspection deprecation // For legacy server supports
129
+ new JsonParser().parse(jsonBuilder.toString()); // Try parse
130
errorCount = Math.max(errorCount - 1, 0);
131
return jsonBuilder.toString();
132
} catch (Throwable e) {
0 commit comments