fix: the server will reupgrade when new player register

This commit is contained in:
Somebody
2025-05-01 18:04:14 +08:00
parent 8cd8a47364
commit f874671e24
3 changed files with 18 additions and 3 deletions

View File

@@ -287,7 +287,7 @@ public class EntryPoint
var updated = false;
foreach (var avatarData in DatabaseHelper.GetAllInstanceFromMap<AvatarData>()!)
{
if (avatarData.DatabaseVersion == "20250430") continue;
if (avatarData.DatabaseVersion == GameConstants.AvatarDbVersion) continue;
foreach (var avatar in avatarData.Avatars)
{
@@ -308,6 +308,8 @@ public class EntryPoint
foreach (var info in avatar.PathInfoes)
{
if (info.Value.PathId == 0)
info.Value.PathId = info.Key;
formalAvatar.PathInfos.Add(info.Key, new PathInfo(info.Value.PathId)
{
PathId = info.Value.PathId,