From 89044ea732c00ad2aaa8301e271fc17165fc01f9 Mon Sep 17 00:00:00 2001 From: Michael Phillips <1194692+MeltedPixel@users.noreply.github.com> Date: Thu, 30 Dec 2021 19:26:12 -0800 Subject: [PATCH] Fixed issue with missing value on heldEntity (#5961) --- Content.Client/Inventory/ClientInventorySystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Client/Inventory/ClientInventorySystem.cs b/Content.Client/Inventory/ClientInventorySystem.cs index 1b63e52612..52dfb92c67 100644 --- a/Content.Client/Inventory/ClientInventorySystem.cs +++ b/Content.Client/Inventory/ClientInventorySystem.cs @@ -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,