Improve dupe listing check

This commit is contained in:
Chomp 2022-01-16 11:21:35 +00:00
parent cb1f23c8f6
commit a5c91995f2

View File

@ -187,7 +187,10 @@ namespace AssortUpdater
{
foreach (var item in flatAssorts)
{
var dupes = flatAssorts.Where(x => x.ItemId == item.ItemId && x.Level == item.Level && x.IsMoney == item.IsMoney && x.AssortId != item.AssortId);
var dupes = flatAssorts.Where(x => x.ItemId == item.ItemId
&& x.IsMoney == item.IsMoney
&& x.BarterDetails[0]._tpl == item.BarterDetails[0]._tpl
&& x.AssortId != item.AssortId);
if (dupes.Any())
{