Skip to content

Commit

Permalink
Properly use file resolver for savekey file path evaluation
Browse files Browse the repository at this point in the history
Signed-off-by: HellFirePvP <[email protected]>
  • Loading branch information
HellFirePvP committed Dec 12, 2024
1 parent be5b4e6 commit 3423cca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public File createAndBackupSaveFile(File saveDir, File backupDir, Function<File,
File saveFile = this.getSaveFile(saveDir);
if (saveFile.exists()) {
try {
Files.copy(saveFile, this.getSaveFile(backupDir));
Files.copy(saveFile, fileResolver.apply(backupDir));
} catch (Exception exc) {
ObserverLib.log.info("Copying '{}' 's actual file to its backup file failed!", this.getIdentifier());
exc.printStackTrace();
Expand Down

0 comments on commit 3423cca

Please sign in to comment.