mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-12-22 17:14:00 +07:00
Add JVM argument for data directory (#10350)
This commit is contained in:
parent
ce3a6e5299
commit
d65f226b3a
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user