Skip to content

Commit

Permalink
up 修复运行库处理问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Dec 31, 2024
1 parent cd35b37 commit 48e532c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/ColorMC.Core/LaunchPath/LibrariesPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,11 @@ public static async Task<List<string>> GetLibsAsync(this GameSettingObj obj)
}
foreach (var item in gameList)
{
output.AddOrUpdate(item.Key, item.Value);
if (output.ContainsKey(item.Key))
{
continue;
}
output.Add(item.Key, item.Value);
}
}
else
Expand Down
2 changes: 0 additions & 2 deletions src/ColorMC.Core/Objs/LibVersionObj.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public override bool Equals(object? obj)
if (obj is not LibVersionObj obj1)
return false;

//return Pack == obj1.Pack && Name == obj1.Name && Verison == obj1.Verison && Extr == obj1.Extr;

return Pack == obj1.Pack && Name == obj1.Name && Extr == obj1.Extr;
}

Expand Down

0 comments on commit 48e532c

Please sign in to comment.