forked from SteamWar/SteamWar
Fix many things
This commit is contained in:
+3
-1
@@ -1,6 +1,7 @@
|
||||
package de.steamwar.bausystem.features.tracer;
|
||||
|
||||
import de.steamwar.bausystem.region.Region;
|
||||
import de.steamwar.bausystem.region.RegionSystem;
|
||||
import lombok.Cleanup;
|
||||
import lombok.SneakyThrows;
|
||||
import org.bukkit.Bukkit;
|
||||
@@ -31,7 +32,8 @@ public class TraceRepository {
|
||||
@Cleanup
|
||||
ObjectInputStream reader = new ObjectInputStream(new GZIPInputStream(new FileInputStream(recordsFile)));
|
||||
UUID uuid = UUID.fromString(reader.readUTF());
|
||||
Region region = Region.getREGION_MAP().get(reader.readUTF());
|
||||
Region region = RegionSystem.INSTANCE.getRegion(reader.readUTF()).orElse(null);
|
||||
if (region == null) return null;
|
||||
Date date = (Date) reader.readObject();
|
||||
int serialisationVersion = reader.readInt();
|
||||
if (serialisationVersion != SERIALISATION_VERSION) {
|
||||
|
||||
Reference in New Issue
Block a user