forked from SteamWar/SteamWar
Hotfix TraceRepository
This commit is contained in:
+7
-2
@@ -37,8 +37,13 @@ public class TraceRepository {
|
||||
} catch (IllegalArgumentException e) {
|
||||
return null;
|
||||
}
|
||||
Region region = RegionSystem.INSTANCE.getRegion(UUID.fromString(reader.readUTF())).orElse(null);
|
||||
if (region == null) return null;
|
||||
Region region;
|
||||
try {
|
||||
region = RegionSystem.INSTANCE.getRegion(UUID.fromString(reader.readUTF())).orElse(null);
|
||||
if (region == null) return null;
|
||||
} catch (IllegalArgumentException e) {
|
||||
return null;
|
||||
}
|
||||
Date date = (Date) reader.readObject();
|
||||
int serialisationVersion = reader.readInt();
|
||||
if (serialisationVersion != SERIALISATION_VERSION) {
|
||||
|
||||
Reference in New Issue
Block a user