diff --git a/src/main/java/StevenDimDoors/mod_pocketDim/saving/DDSaveHandler.java b/src/main/java/StevenDimDoors/mod_pocketDim/saving/DDSaveHandler.java index fed91f8..f240358 100644 --- a/src/main/java/StevenDimDoors/mod_pocketDim/saving/DDSaveHandler.java +++ b/src/main/java/StevenDimDoors/mod_pocketDim/saving/DDSaveHandler.java @@ -242,26 +242,25 @@ public class DDSaveHandler public static boolean saveAll(Iterable> dimensions, List blacklist, boolean checkModified) throws IOException { - // Create the data directory for our dimensions - // Don't catch exceptions here. If we can't create this folder, - // the mod should crash to let the user know early on. - // Get the save directory path File saveDirectory = new File(DimensionManager.getCurrentSaveRootDirectory() + "/DimensionalDoors/data/"); String savePath = saveDirectory.getAbsolutePath(); // Create the save directory + // Don't catch exceptions here. If we can't create this folder, + // then the mod should crash to let the user know early on. Files.createParentDirs(saveDirectory); saveDirectory.mkdir(); // Create and write the blackList writeBlacklist(blacklist, savePath); - // Write the dimension save data, and remove the ones we save from the mapping + // Write the dimension save data boolean succeeded = true; DimDataProcessor writer = new DimDataProcessor(); for (IPackable dimension : dimensions) { + // Check if the dimension should be saved if (!checkModified || dimension.isModified()) { if (writeDimension(dimension, writer, savePath + "/dim_"))