Skip to content

Commit

Permalink
Properly use file resolver for savekey file path evaluation (2x)
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 3423cca commit d8dd3dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public File createAndBackupSaveFile(File saveDir, File backupDir) throws IOExcep
}

public File createAndBackupSaveFile(File saveDir, File backupDir, Function<File, File> fileResolver) throws IOException {
File saveFile = this.getSaveFile(saveDir);
File saveFile = fileResolver.apply(saveDir);
if (saveFile.exists()) {
try {
Files.copy(saveFile, fileResolver.apply(backupDir));
Expand Down

0 comments on commit d8dd3dc

Please sign in to comment.