修复MOD重复加载的错误

This commit is contained in:
ZouJin 2024-05-12 13:48:23 +08:00
parent 8b55b741d1
commit 6e4b4fa7f6

View File

@ -1405,7 +1405,7 @@ namespace VPet_Simulator.Windows
/// <param name="Path">MOD地址</param>
public async Task GameLoad(List<DirectoryInfo> Path)
{
MODPath = Path.Distinct().ToList();
MODPath = Path.GroupBy(x => x.FullName).Select(group => group.First()).ToList();
await Dispatcher.InvokeAsync(new Action(() => LoadingText.Content = "Loading MOD"));
//加载mod
foreach (DirectoryInfo di in MODPath)