From 67f573991a026075ee7ca3cb5f18a014f6e0a008 Mon Sep 17 00:00:00 2001 From: MagicBear Date: Thu, 15 Feb 2024 15:11:41 +0800 Subject: [PATCH] fix Copy player have add error --- CHANGELOG.rst | 1 + palworld_server_toolkit/editor.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7b271c4..9a957ef 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -20,6 +20,7 @@ v0.6.9 Fix: - Sub edit feature not working +- Copy player have add error v0.6.8 ------- diff --git a/palworld_server_toolkit/editor.py b/palworld_server_toolkit/editor.py index 8eb6c3c..d45974d 100644 --- a/palworld_server_toolkit/editor.py +++ b/palworld_server_toolkit/editor.py @@ -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)