Merge branch 'main' of https://github.com/sp-tarkov/server-csharp
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user