We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48a9971 commit ed8096aCopy full SHA for ed8096a
src/main/java/com/github/balloonupdate/mcpatch/client/Main.java
@@ -58,7 +58,7 @@ public static void main(String[] args) throws Throwable {
58
public static void premain(String agentArgs, Instrumentation ins) throws Throwable {
59
boolean graphicsMode = Desktop.isDesktopSupported();
60
61
- if (agentArgs.equals("windowless"))
+ if (agentArgs != null && agentArgs.equals("windowless"))
62
graphicsMode = false;
63
64
AppMain(graphicsMode, StartMethod.JavaAgent, true, false);
0 commit comments