- 本体有同名宠物会导致启动失败
This commit is contained in:
Hakoyu 2024-02-13 15:17:58 +08:00
parent 1b1f52d912
commit 22ec7b67c0

View File

@ -50,7 +50,7 @@ public class ModMaker : MainPlugin
ModMakerInfo.GameVersion = MW.version;
// 载入本体宠物
foreach (var pet in MW.Pets)
ModMakerInfo.MainPets.Add(pet.Name, new(pet, true));
ModMakerInfo.MainPets.TryAdd(pet.Name, new(pet, true));
//Maker.ModMaker = this;
Maker.Show();
Maker.Closed += Maker_Closed;