diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/gui/GetConfigScreen.java b/common/src/main/java/com/seibel/lod/common/wrappers/gui/GetConfigScreen.java index f49dc95f1..8285a1fe4 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/gui/GetConfigScreen.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/gui/GetConfigScreen.java @@ -7,22 +7,27 @@ import com.seibel.lod.core.config.gui.JavaScreenHandlerScreen; import com.seibel.lod.core.config.gui.OpenGLConfigScreen; import net.minecraft.client.gui.screens.Screen; -public class GetConfigScreen { - public static type useScreen = type.Classic; - public static enum type { - Classic, - @Deprecated - OpenGL, // This was jsut an attempt, it didn't work out, and we are going to change to javafx soon (as soon as that works) - JavaFX; - } +public class GetConfigScreen +{ + public static type useScreen = type.Classic; + + public enum type + { + Classic, + @Deprecated + OpenGL, // This was just an attempt, it didn't work out, and we are going to change to javafx soon (as soon as that works) + JavaFX; + } - public static Screen getScreen(Screen parent) { + public static Screen getScreen(Screen parent) + { // Generate the language - // This shouldnt be here, but I need a way to test it after Minecraft inits its assets -// System.out.println(ConfigBase.INSTANCE.generateLang(false, true)); + // This shouldn't be here, but I need a way to test it after Minecraft inits its assets + //System.out.println(ConfigBase.INSTANCE.generateLang(false, true)); - return switch (useScreen) { + return switch (useScreen) + { case Classic -> ClassicConfigGUI.getScreen(ConfigBase.INSTANCE, parent, "client"); case OpenGL -> MinecraftScreen.getScreen(parent, new OpenGLConfigScreen(), ModInfo.ID + ".title"); // case JavaFX -> MinecraftScreen.getScreen(parent, new JavaScreenHandlerScreen(new JavaScreenHandlerScreen.ExampleScreen()), ModInfo.ID + ".title"); diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/gui/updater/UpdateModScreen.java b/common/src/main/java/com/seibel/lod/common/wrappers/gui/updater/UpdateModScreen.java index 011ddbfe8..adead40ed 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/gui/updater/UpdateModScreen.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/gui/updater/UpdateModScreen.java @@ -94,7 +94,7 @@ public class UpdateModScreen extends Screen { ); this.addBtn( // Silent update new Button(this.width / 2 - 75, this.height / 2 + 30, 150, 20, translate(ModInfo.ID + ".updater.silent"), (btn) -> { - Config.Client.Advanced.AutoUpdater.automaticallyUpdate.set(true); + Config.Client.Advanced.AutoUpdater.enableSilentUpdates.set(true); SelfUpdater.updateMod(); this.onClose(); }) diff --git a/coreSubProjects b/coreSubProjects index 7ba43286d..c9e2864c8 160000 --- a/coreSubProjects +++ b/coreSubProjects @@ -1 +1 @@ -Subproject commit 7ba43286d90ef2d3d54ef9ff5331572c642ffa41 +Subproject commit c9e2864c88838acf9e7ba4a0456520015f5d56f6