Skip to content

Commit c9fada2

Browse files
committed
Launching headless should auto-disable CrashReporter.
Despite the !GraphicsEnvironment.isHeadess() in the catch block the CR would still pop up - maybe from the system not being headless *incapable* even if the game ran headless
1 parent 988abbe commit c9fada2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

facades/PC/src/main/java/org/terasology/engine/Terasology.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public static void main(String[] args) {
7373
homePath = Paths.get("");
7474
} else if (arg.equals(HEADLESS_ARG)) {
7575
isHeadless = true;
76+
crashReportEnabled = false;
7677
} else if (arg.equals(NO_CRASH_REPORT_ARG)) {
7778
crashReportEnabled = false;
7879
} else if (arg.equals(LOAD_LAST_GAME_ARG)) {

0 commit comments

Comments
 (0)