setDataDefault

public final Unit setDataDefault()

Set the dataDir to the default path of which Mindustry commonly used

  • Linux: $HOME/.local/share/Mindustry/

  • MacOS: $HOME/Library/Application Support/Mindustry/

  • Windows:%AppData%/Mindustry/

NOTE It will delete all mods other than any in ModsSpec.worksWith in this folder, ensure you have backed up your mods.

See also

resolveDefaultDataDir