Skip to content

Commit

Permalink
fix: back up both the namelist and main config before migration
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriousGuy888 committed Jan 26, 2024
1 parent 055abd8 commit 34d8732
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void attemptMigration(NameListConfig nameListConfig) {
if(!(getFirstNames().isEmpty() && getLastNames().isEmpty())) {
plugin.getLogger().info("Name list present in main config. Attempting to migrate to new location...");

boolean backupSuccessful = this.saveBackupCopy();
boolean backupSuccessful = this.saveBackupCopy() && nameListConfig.saveBackupCopy();
if (!backupSuccessful) {
plugin.getLogger().warning("Backup failed; aborting migration.");
return;
Expand Down

0 comments on commit 34d8732

Please sign in to comment.