fix more diff

This commit is contained in:
Lulu13022002
2024-12-20 23:39:43 +01:00
parent 13b890950d
commit 051ab9117a
6 changed files with 7 additions and 8 deletions

View File

@@ -70,8 +70,8 @@
}
+ // Spigot start
+ } catch (com.google.gson.JsonParseException | NullPointerException ex) {
+ LOGGER.warn("Unable to read file {}, backing it up to {0}.backup and creating new copy.", this.file, ex);
+ File backup = new File(this.file + ".backup");
+ LOGGER.warn("Unable to read file {}, backing it up to {} and creating new copy.", this.file, backup, ex);
+ this.file.renameTo(backup);
+ this.file.delete();
}