为联机提供旧版本名称兼容

This commit is contained in:
ZouJin 2024-03-22 23:32:13 +08:00
parent ea46f7aeae
commit 2ef3c78916

View File

@ -77,6 +77,8 @@ public class MPMOD
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)
{