@@ -250,17 +250,22 @@ public class DDSaveHandler
|
|||||||
|
|
||||||
// Get the save directory path
|
// Get the save directory path
|
||||||
File saveDirectory = new File(mod_pocketDim.instance.getCurrentSavePath() + "/DimensionalDoors/data/");
|
File saveDirectory = new File(mod_pocketDim.instance.getCurrentSavePath() + "/DimensionalDoors/data/");
|
||||||
File backupDirectory = new File(saveDirectory + "/backup");
|
|
||||||
String savePath = saveDirectory.getAbsolutePath();
|
String savePath = saveDirectory.getAbsolutePath();
|
||||||
String baseSavePath = savePath + "/dim_";
|
String baseSavePath = savePath + "/dim_";
|
||||||
|
File backupDirectory = new File(savePath + "/backup");
|
||||||
String baseBackupPath = backupDirectory.getAbsolutePath() + "/dim_";
|
String baseBackupPath = backupDirectory.getAbsolutePath() + "/dim_";
|
||||||
|
|
||||||
if(!saveDirectory.exists())
|
if (!saveDirectory.exists())
|
||||||
{
|
{
|
||||||
// Create the save directory
|
// Create the save directory
|
||||||
Files.createParentDirs(saveDirectory);
|
Files.createParentDirs(saveDirectory);
|
||||||
saveDirectory.mkdir();
|
saveDirectory.mkdir();
|
||||||
}
|
}
|
||||||
|
if (!backupDirectory.exists())
|
||||||
|
{
|
||||||
|
// Create the backup directory
|
||||||
|
backupDirectory.mkdir();
|
||||||
|
}
|
||||||
|
|
||||||
// Create and write the blackList
|
// Create and write the blackList
|
||||||
writeBlacklist(blacklist, savePath);
|
writeBlacklist(blacklist, savePath);
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user