Skip to content

Commit

Permalink
Bandaid fix for resident rename weirdness (#7765)
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr authored Feb 17, 2025
1 parent e87682b commit 2867cdc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ public void renamePlayer(Resident resident, String newName) throws AlreadyRegist

// Make an oldResident with the previous name for use in searching friends/outlawlists/deleting the old resident file.
Resident oldResident = new Resident(oldName);
oldResident.setUUID(resident.getUUID());

// Search and update all friends lists
Set<Resident> residentsToSave = new HashSet<>();
Expand Down

0 comments on commit 2867cdc

Please sign in to comment.