From 445895cc29bea8a432f1aba4db0ec29c721ebfe7 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Wed, 11 Feb 2026 17:57:32 -0700 Subject: [PATCH] Fix savefile issue --- Assets/Scripts/BazookaManager.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Assets/Scripts/BazookaManager.cs b/Assets/Scripts/BazookaManager.cs index 0645bf6..dfb6bca 100644 --- a/Assets/Scripts/BazookaManager.cs +++ b/Assets/Scripts/BazookaManager.cs @@ -29,10 +29,7 @@ public class BazookaManager : MonoBehaviour { var oldSave = Path.Join(Application.persistentDataPath, OldSavefileEncryption.BAZOOKA_MANAGER_FILE_KEY + ".dat"); var newSave = Path.Join(Application.persistentDataPath, "savefile.json"); - if ( - File.Exists(oldSave) || - !File.Exists(newSave) - ) + if (File.Exists(oldSave) && !File.Exists(newSave)) { File.WriteAllBytes(newSave, Encoding.UTF8.GetBytes(OldSavefileEncryption.DecryptRaw(File.ReadAllBytes(oldSave)))); File.Delete(oldSave);