Replaced lists containing unique values with HashSets
Reworked Soft Insert id checks Improved dogtag id lookup memory usage Removed wave cleanup code
This commit is contained in:
@@ -733,9 +733,8 @@ public class InsuranceController(
|
||||
*/
|
||||
public void InsureSoftInserts(Item itemWithSoftInserts, PmcData pmcData, InsureRequestData body)
|
||||
{
|
||||
var softInsertIds = _itemHelper.GetSoftInsertSlotIds();
|
||||
var softInsertSlots = pmcData.Inventory.Items.Where(
|
||||
item => item.ParentId == itemWithSoftInserts.Id && softInsertIds.Contains(item.SlotId.ToLower())
|
||||
item => item.ParentId == itemWithSoftInserts.Id && _itemHelper.IsSoftInsertId(item.SlotId.ToLower())
|
||||
);
|
||||
|
||||
foreach (var softInsertSlot in softInsertSlots)
|
||||
|
||||
Reference in New Issue
Block a user