This commit is contained in:
Anuken
2020-08-05 19:52:09 -04:00
parent f4a838df98
commit 7482e2a988
8 changed files with 176 additions and 157 deletions

View File

@@ -165,9 +165,10 @@ public class Saves{
}
public void deleteAll(){
saves.clear();
for(Fi file : saveDirectory.list()){
file.delete();
for(SaveSlot slot : saves.copy()){
if(!slot.isSector()){
slot.delete();
}
}
}
@@ -187,7 +188,7 @@ public class Saves{
current = this;
totalPlaytime = meta.timePlayed;
savePreview();
}catch(Exception e){
}catch(Throwable e){
throw new SaveException(e);
}
}