Fixed issue with missing value on heldEntity (#5961)

This commit is contained in:
Michael Phillips
2021-12-30 19:26:12 -08:00
committed by GitHub
parent 5eac47639a
commit 89044ea732

View File

@@ -186,9 +186,9 @@ namespace Content.Client.Inventory
if(!TryGetSlotContainer(uid, slot, out var containerSlot, out var slotDef, inventoryComponent))
return;
_itemSlotManager.HoverInSlot(button, heldEntity,
CanEquip(uid, heldEntity, slot, out _, slotDef, inventoryComponent) &&
containerSlot.CanInsert(heldEntity, EntityManager));
_itemSlotManager.HoverInSlot(button, heldEntity.Value,
CanEquip(uid, heldEntity.Value, slot, out _, slotDef, inventoryComponent) &&
containerSlot.CanInsert(heldEntity.Value, EntityManager));
}
private void HandleSlotButtonPressed(EntityUid uid, string slot, ItemSlotButton button,