Skip to content

Commit

Permalink
Fix Save Files not being created when a folder with the same name exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ZockerAxel committed Dec 6, 2021
1 parent d69106e commit 7e5428d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ public void saveProgress(UUID uuid, Advancement... advancements) {
saveFile.merge(newSaveFile);//Merge new Save Data onto existing Data so nothing gets lost

try {
if(!file.exists()) {
if(!file.exists() || !file.isFile()) {
file.createNewFile();
}
FileWriter w = new FileWriter(file);
Expand Down

0 comments on commit 7e5428d

Please sign in to comment.