mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
fix: the server will reupgrade when new player register
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user