Allow command line starts jar

This commit is contained in:
Duy Tran Khanh committed 2021-01-01 16:33:55 +07:00
1 parent 206434f72b
commit fd8263d7e6
1 file changed
+4 -2
@@ -48,8 +48,10 @@ public class PLaunchApp {
throw new RuntimeException(th);
}
*/
System.out.println("We are on java now! Starting UI...");
org.lwjgl.glfw.CallbackBridge.nativeLaunchUI(args);
if (args[0].startsWith("/Applications/") {
System.out.println("We are on java now! Starting UI...");
org.lwjgl.glfw.CallbackBridge.nativeLaunchUI();
}
LauncherPreferences.loadPreferences();
}