From 8c59d63fa86fb6e9d02f85685ae5f5f96098c722 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Mon, 2 Feb 2026 15:01:58 +0200 Subject: [PATCH] Remove unused PersistentDataContainer It only stores mod's current version which is not particularly exciting. It has nothing to do with persisting furniture in a save file. --- HookahPlace/src/HookahPlace.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/HookahPlace/src/HookahPlace.cs b/HookahPlace/src/HookahPlace.cs index bd57154..dda4e4d 100644 --- a/HookahPlace/src/HookahPlace.cs +++ b/HookahPlace/src/HookahPlace.cs @@ -18,8 +18,6 @@ public class HookahPlace : BaseUnityPlugin internal new static ManualLogSource Logger { get; private set; } = null!; internal new static ConfigFile Config { get; private set; } = null!; - internal static PersistentDataContainer PersistentData { get; private set; } = null!; - internal static DuskMod Mod { get; private set; } = null!; private void Awake() @@ -29,14 +27,6 @@ public class HookahPlace : BaseUnityPlugin Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), MyPluginInfo.PLUGIN_GUID); - // Example Persistent Data Container Usage - // You can do anything you want with this DataContainer, there are a few additonal ones under the DawnLib class that pertain to actual save files - PersistentData = this.GetPersistentDataContainer(); - - // e.g. track the last version the player played with, could be useful if you want do to stuff like setting migration. - // if you want to do config migration you should use DawnLib.GetCurrentInstallSave instead. - PersistentData.Set(HookahPlaceKeys.LastVersion, MyPluginInfo.PLUGIN_VERSION); - AssetBundle mainBundle = AssetBundleUtils.LoadBundle(Assembly.GetExecutingAssembly(), "hookahplaceasset"); Mod = DuskMod.RegisterMod(this, mainBundle);