From bc9d8693fb71f4f7afb6f7e4b4c583d5daf7e79e Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Tue, 26 Aug 2025 18:41:51 -0700 Subject: [PATCH] Fix version not being in savefile --- Assets/Scripts/BazookaManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Scripts/BazookaManager.cs b/Assets/Scripts/BazookaManager.cs index ddd4ac6..b484f4e 100644 --- a/Assets/Scripts/BazookaManager.cs +++ b/Assets/Scripts/BazookaManager.cs @@ -62,6 +62,10 @@ public class BazookaManager : MonoBehaviour Debug.LogWarning("Failed to load save file"); } } + if (saveFile["version"] == null || saveFile["version"].ToString() != "0") + { + saveFile["version"] = "0"; + } if (!PlayerPrefs.HasKey("LegacyConversion")) { PlayerPrefs.SetInt("LegacyConversion", 1);