From fe7c51c99614742d4d2fb0050d4b4e23a63a28a0 Mon Sep 17 00:00:00 2001 From: Somebody Date: Thu, 8 Aug 2024 15:18:29 +0800 Subject: [PATCH] Add a new field --- Common/Database/Player/ServerPrefsData.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Common/Database/Player/ServerPrefsData.cs b/Common/Database/Player/ServerPrefsData.cs index ecc9b6e0..88f3af12 100644 --- a/Common/Database/Player/ServerPrefsData.cs +++ b/Common/Database/Player/ServerPrefsData.cs @@ -10,6 +10,8 @@ public class ServerPrefsData : BaseDatabaseDataHelper [SugarColumn(IsJson = true)] public Dictionary ServerPrefsDict { get; set; } = []; + public double Version { get; set; } = 2.4; + public void SetData(int prefsId, string b64Data) { ServerPrefsDict[prefsId] = new ServerPrefsInfo()