remove Distinct() in inventory tracking

These cover very rare edge cases with invalid inventory data, so it's not really worth the added performance hit of handling them. The next commits will avoid the error if duplicates do occur.
This commit is contained in:
Jesse Plamondon-Willard
2026-03-26 22:42:35 -04:00
parent 67dff9ea7a
commit 42238538bd
2 changed files with 0 additions and 2 deletions
@@ -48,7 +48,6 @@ internal class ChestTracker : IDisposable
this.StackSizes = this.Chest.Items
.Where(n => n != null)
.Distinct()
.ToDictionary(n => n, n => n.Stack);
}
@@ -137,7 +137,6 @@ internal class PlayerTracker : IDisposable
{
return this.Player.Items
.Where(n => n != null)
.Distinct()
.ToDictionary(n => n, n => n.Stack);
}
}