public bool CanPickUpStack(ItemStack dropped)
 {
     return(Hotbar.Any(stack => stack == null || stack.IsEmpty || stack.ItemSame(dropped) && stack.Count + dropped.Count <= dropped.Item.GetMaxStackSize()) ||
            Inventory.Any(stack => stack == null || stack.IsEmpty || stack.ItemSame(dropped) && stack.Count + dropped.Count <= dropped.Item.GetMaxStackSize()));
 }