We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8815f1 commit e45d787Copy full SHA for e45d787
src/common/Edelstein.Common.Gameplay/Entities/Inventories/Modifiers/ModifyInventoryContext.cs
@@ -121,8 +121,17 @@ public void UpdateSlot(short slot)
121
{
122
var item = this[slot];
123
if (item == null) return;
124
- RemoveSlot(slot);
125
- SetSlot(slot, item);
+
+ Operations.Enqueue(new StructuredModifyInventoryOperation
126
+ {
127
+ Type = ModifyInventoryOperationType.Add,
128
+ Info = new StructuredModifyInventoryOperationInfoAdd
129
130
+ Item = item.ToStructured(),
131
+ Inventory = type,
132
+ Slot = slot
133
+ }
134
+ });
135
}
136
137
public override short Add(ItemSlotBase item)
0 commit comments