diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/config/ConfigGui.java b/common/src/main/java/com/seibel/lod/common/wrappers/config/ConfigGui.java index 3fc12f2c5..a6e81efc1 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/config/ConfigGui.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/config/ConfigGui.java @@ -339,6 +339,18 @@ public abstract class ConfigGui loadFileWithErrorCheck(config); + + // Just put this here for the future + config.setComment("_Version", " DONT TOUCH THIS, IF YOU DO THEN CONFIG FILE WOULD BREAK"); + if (config.contains("_Version")) { + if (config.get("_Version") != ModInfo.VERSION) { + LOGGER.error("THERE IS A PROBLEM WITH THE CONFIG FILE"); + LOGGER.error("You have downgraded your mod, this could cause problems with your config"); + } + } + config.set("_Versions", ModInfo.VERSION); + + for (EntryInfo info : entries) { if (info.field.isAnnotationPresent(ConfigAnnotations.Entry.class)) { editSingleOption.saveOption(info, config); @@ -369,6 +381,18 @@ public abstract class ConfigGui loadFileWithErrorCheck(config); + + // Just put this here for the future + config.setComment("_Version", " DONT TOUCH THIS, IF YOU DO THEN CONFIG FILE WOULD BREAK"); + if (config.contains("_Version")) { + if (config.get("_Version") != ModInfo.VERSION) { + LOGGER.error("THERE IS A PROBLEM WITH THE CONFIG FILE"); + LOGGER.error("You have downgraded your mod, this could cause problems with your config"); + } + } + config.set("_Versions", ModInfo.VERSION); + + // Puts everything into its variable for (EntryInfo info : entries) { if (info.field.isAnnotationPresent(ConfigAnnotations.Entry.class)) { diff --git a/core b/core index f7da53622..5d72d321d 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit f7da53622c9fe1b0ccd9110ff97477aa4aa5a849 +Subproject commit 5d72d321db31befec9e9c0ca54a1ceff8942a95e