From 1b0e362227c8f6076edcf38e9e2e36fee00a5c51 Mon Sep 17 00:00:00 2001 From: coolGi2007 Date: Fri, 11 Feb 2022 13:09:59 +0000 Subject: [PATCH] Added _Version to config for future me --- .../seibel/lod/common/wrappers/config/ConfigGui.java | 12 ++++++++++++ core | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) 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 d31fbf1f3..f129d1fa5 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,12 @@ 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"); + config.set("_Versions", ModInfo.VERSION); + + for (EntryInfo info : entries) { if (info.field.isAnnotationPresent(ConfigAnnotations.Entry.class)) { editSingleOption.saveOption(info, config); @@ -369,6 +375,12 @@ 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"); + 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 5d72d321d..241447d55 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 5d72d321db31befec9e9c0ca54a1ceff8942a95e +Subproject commit 241447d55a395f05a1f85cb14d7f7b689b2b8dc9