Skip to content

Commit

Permalink
Add JVM argument for data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ahdg6 authored Nov 23, 2024
1 parent 650d008 commit e1b37c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/ClientLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit e1b37c1

Please sign in to comment.