Skip to content

Commit

Permalink
Replace existing old remote config URL with the new one
Browse files Browse the repository at this point in the history
  • Loading branch information
dogboy21 committed Mar 16, 2024
1 parent 5c691ea commit 15f204b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ private static SIBConfig readConfig(File minecraftDir) {
}

private static SIBConfig readRemoteConfig(File minecraftDir, String url) {
// if the remote config url is the old default one, replace it with the new default to prevent issues
// see https://github.com/dogboy21/serializationisbad/issues/83 for more details
if ("https://raw.githubusercontent.com/dogboy21/serializationisbad/master/serializationisbad.json".equals(url)) {
url = new SIBConfig().getRemoteConfigUrl();
}

Gson gson = new Gson();
File cacheFile = new File(SerializationIsBad.getConfigDir(minecraftDir), "serializationisbad-remotecache.json");

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
group=io.dogboy.serializationisbad
name=serializationisbad
version=1.5.1
version=1.5.2

0 comments on commit 15f204b

Please sign in to comment.