From d65f226b3ae5eebe7439f83c7d213284d6159cfe Mon Sep 17 00:00:00 2001 From: ahdg <36436808+ahdg6@users.noreply.github.com> Date: Tue, 26 Nov 2024 03:33:13 +0800 Subject: [PATCH] Add JVM argument for data directory (#10350) --- core/src/mindustry/ClientLauncher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/ClientLauncher.java b/core/src/mindustry/ClientLauncher.java index c68681b7a9..a0fe9fbdb1 100644 --- a/core/src/mindustry/ClientLauncher.java +++ b/core/src/mindustry/ClientLauncher.java @@ -35,7 +35,7 @@ public abstract class ClientLauncher extends ApplicationCore implements Platform @Override public void setup(){ - String dataDir = OS.env("MINDUSTRY_DATA_DIR"); + String dataDir = System.getProperty("mindustry.data.dir", OS.env("MINDUSTRY_DATA_DIR")); if(dataDir != null){ Core.settings.setDataDirectory(files.absolute(dataDir)); }