Fixed issue with missing value on heldEntity (#5961)
This commit is contained in:
@@ -186,9 +186,9 @@ namespace Content.Client.Inventory
|
|||||||
if(!TryGetSlotContainer(uid, slot, out var containerSlot, out var slotDef, inventoryComponent))
|
if(!TryGetSlotContainer(uid, slot, out var containerSlot, out var slotDef, inventoryComponent))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_itemSlotManager.HoverInSlot(button, heldEntity,
|
_itemSlotManager.HoverInSlot(button, heldEntity.Value,
|
||||||
CanEquip(uid, heldEntity, slot, out _, slotDef, inventoryComponent) &&
|
CanEquip(uid, heldEntity.Value, slot, out _, slotDef, inventoryComponent) &&
|
||||||
containerSlot.CanInsert(heldEntity, EntityManager));
|
containerSlot.CanInsert(heldEntity.Value, EntityManager));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleSlotButtonPressed(EntityUid uid, string slot, ItemSlotButton button,
|
private void HandleSlotButtonPressed(EntityUid uid, string slot, ItemSlotButton button,
|
||||||
|
|||||||
Reference in New Issue
Block a user