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-entity/src/data.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-entity/src/data.rs') diff --git a/azalea-entity/src/data.rs b/azalea-entity/src/data.rs index c9e98b0d..0b973bcb 100644 --- a/azalea-entity/src/data.rs +++ b/azalea-entity/src/data.rs @@ -13,7 +13,6 @@ use azalea_core::{ }; use azalea_inventory::{ItemStack, components}; use azalea_registry::builtin::{VillagerKind, VillagerProfession}; -use bevy_ecs::component::Component; use derive_more::Deref; use enum_as_inner::EnumAsInner; use uuid::Uuid; @@ -154,7 +153,8 @@ pub struct Rotations { pub z: f32, } -#[derive(AzBuf, Clone, Component, Copy, Debug, Default, Eq, PartialEq)] +#[cfg_attr(feature = "bevy_ecs", derive(bevy_ecs::component::Component))] +#[derive(AzBuf, Clone, Copy, Debug, Default, Eq, PartialEq)] pub enum Pose { #[default] Standing = 0, -- cgit v1.2.3