From 22ec7b67c01e36999154d475c92b2fb6b17cb337 Mon Sep 17 00:00:00 2001 From: Hakoyu Date: Tue, 13 Feb 2024 15:17:58 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E4=BF=AE=E5=A4=8D=20-=20=E6=9C=AC=E4=BD=93?= =?UTF-8?q?=E6=9C=89=E5=90=8C=E5=90=8D=E5=AE=A0=E7=89=A9=E4=BC=9A=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet.ModMaker/Models/ModMaker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VPet.ModMaker/Models/ModMaker.cs b/VPet.ModMaker/Models/ModMaker.cs index e34639d..d56fe87 100644 --- a/VPet.ModMaker/Models/ModMaker.cs +++ b/VPet.ModMaker/Models/ModMaker.cs @@ -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;