diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2026-01-12 02:09:41 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-12 02:09:41 -0600 |
| commit | 1accbac964168af5fa0d87cb170389f0a9d01363 (patch) | |
| tree | 1509b26c19beaa23a492289f6bf00d3958be44d5 /azalea-entity/src/dimensions.rs | |
| parent | 58339b9d229592dee40e15b8648fe4075cc391f4 (diff) | |
| download | azalea-drasl-1accbac964168af5fa0d87cb170389f0a9d01363.tar.xz | |
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
Diffstat (limited to 'azalea-entity/src/dimensions.rs')
| -rw-r--r-- | azalea-entity/src/dimensions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-entity/src/dimensions.rs b/azalea-entity/src/dimensions.rs index 87eced8a..6c527ab6 100644 --- a/azalea-entity/src/dimensions.rs +++ b/azalea-entity/src/dimensions.rs @@ -1,11 +1,11 @@ use azalea_core::{aabb::Aabb, position::Vec3}; use azalea_registry::builtin::EntityKind; -use bevy_ecs::component::Component; use crate::Pose; -/// A component that contains the size of an entity and their eye height. -#[derive(Clone, Component, Debug, Default)] +/// The size of an entity and its eye height. +#[cfg_attr(feature = "bevy_ecs", derive(bevy_ecs::component::Component))] +#[derive(Clone, Debug, Default)] pub struct EntityDimensions { pub width: f32, pub height: f32, |
