From 66d62f506d591982573f4872646bee4b3332e700 Mon Sep 17 00:00:00 2001 From: Imitater967 Date: Thu, 9 May 2024 21:59:41 +0800 Subject: [PATCH] fix(facades): fix command line args not working --- .../src/main/java/org/terasology/engine/Terasology.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/facades/PC/src/main/java/org/terasology/engine/Terasology.java b/facades/PC/src/main/java/org/terasology/engine/Terasology.java index 433380f9f00..dca098f58c0 100644 --- a/facades/PC/src/main/java/org/terasology/engine/Terasology.java +++ b/facades/PC/src/main/java/org/terasology/engine/Terasology.java @@ -101,13 +101,13 @@ public final class Terasology implements Callable { ) private Integer outOfMemoryScore; - @Option(names = "--crash-report", defaultValue = "true", negatable = true, description = "Enable crash reporting") + @Option(names = "--crash-report", defaultValue = "true", fallbackValue = "true", negatable = true, description = "Enable crash reporting") private boolean crashReportEnabled; - @Option(names = "--sound", defaultValue = "true", negatable = true, description = "Enable sound") + @Option(names = "--sound", defaultValue = "true", fallbackValue = "true", negatable = true, description = "Enable sound") private boolean soundEnabled; - @Option(names = "--splash", defaultValue = "true", negatable = true, description = "Enable splash screen") + @Option(names = "--splash", defaultValue = "true", fallbackValue = "true", negatable = true, description = "Enable splash screen") private boolean splashEnabled; @Option(names = "--load-last-game", description = "Load the latest game on startup") @@ -119,7 +119,7 @@ public final class Terasology implements Callable { @Option(names = "--permissive-security") private boolean permissiveSecurity; - @Option(names = "--save-games", defaultValue = "true", negatable = true, description = "Enable new save games") + @Option(names = "--save-games", defaultValue = "true", fallbackValue = "true", negatable = true, description = "Enable new save games") private boolean saveGamesEnabled; @Option(names = "--server-port", description = "Change the server port")