fix the fix

This commit is contained in:
Lee 2024-04-29 06:52:52 +01:00
parent 254e960447
commit 80daf3899a

View File

@ -36,7 +36,7 @@ public class PiaManager {
serversFile.createNewFile();
}
// Load the serversFile from the file
SERVERS = Main.GSON.fromJson(Files.readString(serversFile.toPath()), new TypeToken<List<PiaServer>>() {}.getType());
SERVERS = Main.GSON.fromJson(Files.readString(serversFile.toPath()), new TypeToken<Set<PiaServer>>() {}.getType());
if (SERVERS == null) {
SERVERS = new HashSet<>();
}