Make inventory slot interact properly go through unequip (#7998)
This commit is contained in:
@@ -123,11 +123,13 @@ public abstract partial class InventorySystem
|
||||
return;
|
||||
}
|
||||
|
||||
// interact with an empty hand (usually just unequips the item).
|
||||
// unequip the item.
|
||||
if (itemUid != null)
|
||||
{
|
||||
if (_actionBlockerSystem.CanInteract(actor, itemUid.Value))
|
||||
_interactionSystem.InteractHand(actor, itemUid.Value);
|
||||
if (!TryUnequip(actor, ev.Slot, out var item, predicted: true, inventory: inventory))
|
||||
return;
|
||||
|
||||
_handsSystem.PickupOrDrop(actor, item.Value);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user