diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/game/LaunchOptions.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/game/LaunchOptions.java index 179a35510..ab39645d6 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/game/LaunchOptions.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/game/LaunchOptions.java @@ -55,7 +55,7 @@ public class LaunchOptions implements Serializable { private String preLaunchCommand; private NativesDirectoryType nativesDirType; private String nativesDir; - private ProcessPriority processPriority; + private ProcessPriority processPriority = ProcessPriority.NORMAL; /** * The game directory @@ -497,7 +497,7 @@ public class LaunchOptions implements Serializable { return this; } - public Builder setProcessPriority(ProcessPriority processPriority) { + public Builder setProcessPriority(@NotNull ProcessPriority processPriority) { options.processPriority = processPriority; return this; }