Don't pretty-print '/lp export' json (#3489)

This commit is contained in:
maxcom1 2022-09-30 21:32:37 +02:00 committed by GitHub
parent 44470c8843
commit 8bbb6994b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,7 @@ public abstract class Exporter implements Runnable {
ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
try (Writer writer = new OutputStreamWriter(new GZIPOutputStream(bytesOut), StandardCharsets.UTF_8)) {
GsonProvider.prettyPrinting().toJson(json, writer);
GsonProvider.normal().toJson(json, writer);
} catch (IOException e) {
this.plugin.getLogger().severe("Error compressing data", e);
}