@@ -99,7 +99,8 @@ namespace Content.Client.Hands
|
||||
_itemSlotManager.SetItemSlot(newButton, hand.HeldItem);
|
||||
|
||||
// Show blocked overlay if hand is blocked.
|
||||
newButton.Blocked.Visible = IoCManager.Resolve<IEntityManager>().HasComponent<HandVirtualItemComponent>(hand.HeldItem);
|
||||
newButton.Blocked.Visible =
|
||||
hand.HeldItem != null && IoCManager.Resolve<IEntityManager>().HasComponent<HandVirtualItemComponent>(hand.HeldItem);
|
||||
}
|
||||
|
||||
if (TryGetActiveHand(out var activeHand))
|
||||
|
||||
Reference in New Issue
Block a user