This commit is contained in:
Chomp
2025-02-01 21:12:02 +00:00
3 changed files with 1 additions and 3 deletions
@@ -472,7 +472,6 @@ public class InventoryHelper(
var insuredItems = profile.InsuredItems;
// We have output object, inform client of root item deletion, not children
if (output is not null) output.ProfileChanges[sessionId].Items.DeletedItems.Add(new Item { Id = itemId });
foreach (var item in itemAndChildrenToRemove)
{
@@ -429,7 +429,7 @@ public class BotEquipmentFilterService
foreach (var itemToEditKvP in poolAdjustmentKvP.Value)
{
// Only make change if item exists as we're editing, not adding
if (locationToUpdate[itemToEditKvP.Key] != null || locationToUpdate[itemToEditKvP.Key] == 0)
if (locationToUpdate.GetValueOrDefault(itemToEditKvP.Key) != null || locationToUpdate[itemToEditKvP.Key] == 0)
{
locationToUpdate[itemToEditKvP.Key] = itemToEditKvP.Value;
}
@@ -923,7 +923,6 @@ public class CircleOfCultistService(
CircleOfCultistSlotId
);
// Add item + mods to output and profile inventory
output.ProfileChanges[sessionId].Items.NewItems.AddRange(itemToAdd);
pmcData.Inventory.Items.AddRange(itemToAdd);
}
}