Skip to content

Commit

Permalink
yes
Browse files Browse the repository at this point in the history
  • Loading branch information
glowredman committed Feb 9, 2022
1 parent a8aa047 commit f9ec2cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ src/main/resources/mixins.*.json
*.bat
*.DS_Store
!gradlew.bat
*.launch
4 changes: 1 addition & 3 deletions src/main/java/glowredman/defaultserverlist/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.io.File;
import java.io.Reader;
import java.lang.reflect.Type;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
Expand Down Expand Up @@ -43,8 +42,7 @@ public static void preInit(File configDir) {

Map<String, String> servers;
if(config.useURL) {
Type type = new TypeToken<Map<String, String>>() {}.getType();
servers = gson.fromJson(IOUtils.toString(new URL(config.url), StandardCharsets.UTF_8), type);
servers = gson.fromJson(IOUtils.toString(new URL(config.url), StandardCharsets.UTF_8), new TypeToken<Map<String, String>>() {private static final long serialVersionUID = -1786059589535074931L;}.getType());
} else {
servers = config.servers;
}
Expand Down

0 comments on commit f9ec2cf

Please sign in to comment.