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.
This commit is contained in:
ivan tkachenko 2026-02-02 15:01:58 +02:00
parent 3bdef5bc72
commit 8c59d63fa8
1 changed files with 0 additions and 10 deletions

View File

@ -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);