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-core/src/attribute_modifier_operation.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-core/src/attribute_modifier_operation.rs') diff --git a/azalea-core/src/attribute_modifier_operation.rs b/azalea-core/src/attribute_modifier_operation.rs index 8418ff22..ab135080 100644 --- a/azalea-core/src/attribute_modifier_operation.rs +++ b/azalea-core/src/attribute_modifier_operation.rs @@ -1,11 +1,11 @@ use std::str::FromStr; use azalea_buf::AzBuf; -use serde::Serialize; use simdnbt::{FromNbtTag, borrow::NbtTag}; -#[derive(AzBuf, Clone, Copy, Debug, PartialEq, Serialize)] -#[serde(rename_all = "snake_case")] +#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[derive(AzBuf, Clone, Copy, Debug, PartialEq)] +#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] pub enum AttributeModifierOperation { AddValue, AddMultipliedBase, -- cgit v1.2.3