Removed compression from TraceRecord serialisation

This commit is contained in:
D4rkr34lm
2024-08-08 15:34:36 +02:00
committed by D4rkr34lm
parent be848ac67a
commit ead144d974
@@ -9,7 +9,6 @@ import org.bukkit.util.Vector;
import java.io.*;
import java.util.*;
import java.util.zip.GZIPInputStream;
public class TraceRepository {
@@ -99,7 +98,7 @@ public class TraceRepository {
double locY = objectInput.readDouble();
double locZ = objectInput.readDouble();
Location location = new Location(Bukkit.getWorlds().get(0), locX, locY, locZ);
double velX = objectInput.readDouble();
double velY = objectInput.readDouble();
double velZ = objectInput.readDouble();
@@ -112,7 +111,7 @@ public class TraceRepository {
protected static List<TNTPoint> readTraceRecords(Trace trace) {
File recordsFile = trace.getRecordsSaveFile();
@Cleanup
ObjectInputStream inputStream = new ObjectInputStream(new GZIPInputStream(new FileInputStream(recordsFile)));
ObjectInputStream inputStream = new ObjectInputStream(new FileInputStream(recordsFile));
List<TNTPoint> records = new ArrayList<>();
for (int i = 0; i < trace.getRecordsCount(); i++) {