Display error when attempt run on command line

This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2021-02-14 19:22:44 +07:00
1 parent 40ddae4ec8
commit 57e626b3d3
1 file changed
+4 -2
@@ -38,8 +38,10 @@ public class PLaunchApp {
System.out.println("We are on java now! Starting UI...");
UIKit.launchUI(args);
} else {
// Test on cmdline
launchMinecraft();
System.err.println("UIKit could not be connected when run on command line! Please run from home screen instead. " +
"If you didn't see PojavLauncher on home screen, run this command:");
System.err.println("uicache -p /Applications/PojavLauncher.app");
return;
}
LauncherPreferences.loadPreferences();