Skip to content

Commit

Permalink
fix Copy player have add error
Browse files Browse the repository at this point in the history
  • Loading branch information
magicbear committed Feb 15, 2024
1 parent 9313ccb commit 67f5739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ v0.6.9
Fix:

- Sub edit feature not working
- Copy player have add error

v0.6.8
-------
Expand Down
2 changes: 1 addition & 1 deletion palworld_server_toolkit/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2591,7 +2591,7 @@ def CopyPlayer(player_uid, new_player_uid, old_wsd, dry_run=False):
if not dry_run:
if id(old_wsd) != id(wsd) and player_uid not in MappingCache.PlayerIdMapping:
backup_file(player_sav_file)
delete_files.add(player_sav_file)
delete_files.append(player_sav_file)
if new_player_sav_file in delete_files:
delete_files.remove(new_player_sav_file)
backup_file(new_player_sav_file)
Expand Down

0 comments on commit 67f5739

Please sign in to comment.