diff --git a/src/common/Edelstein.Common.Gameplay/Entities/Inventories/Modifiers/ModifyInventoryContext.cs b/src/common/Edelstein.Common.Gameplay/Entities/Inventories/Modifiers/ModifyInventoryContext.cs index 857e25e5c..82c174829 100644 --- a/src/common/Edelstein.Common.Gameplay/Entities/Inventories/Modifiers/ModifyInventoryContext.cs +++ b/src/common/Edelstein.Common.Gameplay/Entities/Inventories/Modifiers/ModifyInventoryContext.cs @@ -121,8 +121,17 @@ public void UpdateSlot(short slot) { var item = this[slot]; if (item == null) return; - RemoveSlot(slot); - SetSlot(slot, item); + + Operations.Enqueue(new StructuredModifyInventoryOperation + { + Type = ModifyInventoryOperationType.Add, + Info = new StructuredModifyInventoryOperationInfoAdd + { + Item = item.ToStructured(), + Inventory = type, + Slot = slot + } + }); } public override short Add(ItemSlotBase item)