Skip to content

Commit fc4b237

Browse files
committed
Changed main class back to CLI
1 parent 6df5355 commit fc4b237

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
sourceCompatibility = JavaVersion.VERSION_1_8
88
targetCompatibility = JavaVersion.VERSION_1_8
99

10-
mainClassName = 'org.mcphackers.mcp.main.MainGUI'
10+
mainClassName = 'org.mcphackers.mcp.main.MainCLI'
1111

1212
repositories {
1313
mavenCentral()
@@ -40,7 +40,7 @@ dependencies {
4040

4141
application {
4242
// Redirect all execution into the testing folder
43-
mainClass = 'org.mcphackers.mcp.main.MainGUI'
43+
mainClass = mainClassName
4444
executableDir = 'test'
4545
}
4646

src/main/java/org/mcphackers/mcp/main/MainCLI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static void main(String[] args) throws Exception {
5151
AnsiConsole.systemInstall();
5252
}
5353
else {
54-
System.err.println("Error: Could not find console. Launching GUI instead");
54+
//System.out.println("Could not find console. Launching GUI");
5555
MainGUI.main(args);
5656
return;
5757
}

0 commit comments

Comments
 (0)