Skip to content

Commit

Permalink
add config option for checking java version
Browse files Browse the repository at this point in the history
  • Loading branch information
WaitingIdly committed Sep 29, 2024
1 parent 7ed6766 commit b8e8cf5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/dev/redstudio/valkyrie/Valkyrie.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public final class Valkyrie {
public static void preInit(FMLPreInitializationEvent preInitializationEvent) {
snoozerFile = new File(preInitializationEvent.getModConfigurationDirectory() + "/" + VERSION + " Snoozer.txt");

new Thread(JvmCheckUtil::checkJavaVersion).start();
if (ValkyrieConfig.general.javaVersionCheck)
new Thread(JvmCheckUtil::checkJavaVersion).start();
}

@Mod.EventHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class ValkyrieConfig {

public static class GeneralConfig {

@Config.RequiresMcRestart
public boolean javaVersionCheck = true;

@Config.RequiresMcRestart
public boolean highPrecisionDepthBuffer = false;
public boolean customIcons = false;
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/assets/valkyrie/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jvmCheck.ignore=Ignore
valkyrie.general.general=General
valkyrie.general.general.tooltip=General configuration

valkyrie.general.general.javaversioncheck=Disable Outdated Java Version Check
valkyrie.general.general.javaversioncheck.tooltip=Enable or disable the popup when using an outdated Java version.
valkyrie.general.general.highprecisiondepthbuffer=High Precision Depth Buffer
valkyrie.general.general.highprecisiondepthbuffer.tooltip=Whether or not to use high precision depth buffer, this doesn't seem to be important or change much, but might be useful in the future.
valkyrie.general.general.windowtitle=Window Title
Expand Down

0 comments on commit b8e8cf5

Please sign in to comment.