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-core/src/attribute_modifier_operation.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-core/src/attribute_modifier_operation.rs')
| -rw-r--r-- | azalea-core/src/attribute_modifier_operation.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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, |
