Fix savefile issue

This commit is contained in:
Lncvrt committed 2026-02-11 17:58:06 -07:00
1 parent d855773d61
commit 445895cc29
1 file changed
+1 -4
+1 -4
View File
@@ -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);