diff --git a/core/src/main/java/io/dogboy/serializationisbad/core/SerializationIsBad.java b/core/src/main/java/io/dogboy/serializationisbad/core/SerializationIsBad.java index 70d31f1..181eb6e 100644 --- a/core/src/main/java/io/dogboy/serializationisbad/core/SerializationIsBad.java +++ b/core/src/main/java/io/dogboy/serializationisbad/core/SerializationIsBad.java @@ -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"); diff --git a/gradle.properties b/gradle.properties index 9da09dc..6cb810e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group=io.dogboy.serializationisbad name=serializationisbad -version=1.5.1 +version=1.5.2