Skip to content

Commit

Permalink
Fix not being able to save when no existing Save File is found
Browse files Browse the repository at this point in the history
  • Loading branch information
ZockerAxel committed Dec 4, 2021
1 parent 2645a87 commit ced4492
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,8 @@ private static SaveFile generateSaveFile(File file) {
//Do nothing
}
}
throw new RuntimeException("Could not read Save File");
//Return Empty Save if Save File doesn't exist
return new SaveFile(new ArrayList<ProgressData>(), new ArrayList<CriteriaData>());
}

}

0 comments on commit ced4492

Please sign in to comment.