Improve dupe listing check
This commit is contained in:
parent
cb1f23c8f6
commit
a5c91995f2
@ -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())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user