旧版本名称兼容

This commit is contained in:
ZouJin 2024-03-20 12:45:13 +08:00
parent 68bf840210
commit 81f0de0524

View File

@ -171,6 +171,9 @@ namespace VPet_Simulator.Windows
if (lps.First().Name.ToLower() == "pet")
{
var name = lps.First().Info;
if (name == "默认虚拟桌宠")
name = "vup";//旧版本名称兼容
var p = mw.Pets.FirstOrDefault(x => x.Name == name);
if (p == null)
{