Fixed Bugs
* Fixed bug with backup directory creation * Fixed two doorways in SK-FractalCage that were supposed to open but had been replaced with Eternal Fabric
This commit is contained in:
parent
4dca0eb82b
commit
ffe45c729e
2 changed files with 7 additions and 2 deletions
|
@ -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.
Loading…
Reference in a new issue