From 1accbac964168af5fa0d87cb170389f0a9d01363 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 12 Jan 2026 02:09:41 -0600 Subject: Make Bevy dependencies optional in azalea-protocol (#303) * Make Bevy dependencies optional in azalea-protocol * derive serde traits on Direction again * update docs for types that may not have Component --- azalea-protocol/src/common/client_information.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'azalea-protocol/src/common') diff --git a/azalea-protocol/src/common/client_information.rs b/azalea-protocol/src/common/client_information.rs index 68a9956a..189f1019 100644 --- a/azalea-protocol/src/common/client_information.rs +++ b/azalea-protocol/src/common/client_information.rs @@ -3,13 +3,13 @@ use std::io::{self, Cursor}; use azalea_buf::{AzBuf, AzaleaRead, AzaleaWrite}; use azalea_core::bitset::FixedBitSet; use azalea_entity::HumanoidArm; -use bevy_ecs::component::Component; -/// A component that contains some of the "settings" for this client that are -/// sent to the server, such as render distance. +/// Some of the "settings" for this client that are sent to the server, +/// including render distance. /// -/// This is only present on local players. -#[derive(AzBuf, Clone, Component, Debug, Eq, PartialEq)] +/// This should only be present on local players. +#[cfg_attr(feature = "bevy_ecs", derive(bevy_ecs::component::Component))] +#[derive(AzBuf, Clone, Debug, Eq, PartialEq)] pub struct ClientInformation { /// The locale of the client, formatted like "en_us". pub language: String, -- cgit v1.2.3