diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-12-09 11:23:45 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-09 11:23:45 -0600 |
| commit | 84cd261118c9d1e3145d4d1751c0d22098cd8cd8 (patch) | |
| tree | f9beeb5697a4b895423ef24989044fca8afc5594 /azalea-core/src | |
| parent | 676707aab320339b4c7406ee4f494b530f44e926 (diff) | |
| download | azalea-drasl-84cd261118c9d1e3145d4d1751c0d22098cd8cd8.tar.xz | |
1.21.11 (#273)
* run codegen for 25w44a
* 25w44a
* 25w46a
* rename ResourceLocation to Identifier per mojmap changes
* update changelog
* 1.21.11-pre1
* 1.21.11-pre2
* 1.21.11-pre3
* add AttackRange fields from pre4
* 1.21.11-rc3
* 1.21.11
Diffstat (limited to 'azalea-core/src')
| -rw-r--r-- | azalea-core/src/registry_holder.rs | 9 | ||||
| -rw-r--r-- | azalea-core/src/sound.rs | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/azalea-core/src/registry_holder.rs b/azalea-core/src/registry_holder.rs index 6730cd20..b44d5155 100644 --- a/azalea-core/src/registry_holder.rs +++ b/azalea-core/src/registry_holder.rs @@ -7,6 +7,7 @@ use std::{collections::HashMap, io::Cursor}; +use azalea_buf::AzBuf; use indexmap::IndexMap; use simdnbt::{ Deserialize, FromNbtTag, Serialize, ToNbtTag, @@ -14,7 +15,7 @@ use simdnbt::{ }; use tracing::error; -use crate::identifier::Identifier; +use crate::{codec_utils::*, identifier::Identifier}; /// The base of the registry. /// @@ -330,12 +331,16 @@ pub struct TrimPatternElement { pub pattern: HashMap<String, String>, } -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive( + Debug, Clone, serde::Serialize, simdnbt::Serialize, simdnbt::Deserialize, AzBuf, PartialEq, +)] #[cfg_attr(feature = "strict_registry", simdnbt(deny_unknown_fields))] pub struct DamageTypeElement { pub message_id: String, pub scaling: String, pub exhaustion: f32, + #[serde(skip_serializing_if = "is_default")] pub effects: Option<String>, + #[serde(skip_serializing_if = "is_default")] pub death_message_type: Option<String>, } diff --git a/azalea-core/src/sound.rs b/azalea-core/src/sound.rs index ebc18928..ab4bf431 100644 --- a/azalea-core/src/sound.rs +++ b/azalea-core/src/sound.rs @@ -5,6 +5,6 @@ use crate::identifier::Identifier; #[derive(Clone, Debug, PartialEq, AzBuf, Serialize)] pub struct CustomSound { - pub location: Identifier, - pub fixed_range: Option<f32>, + pub sound_id: Identifier, + pub range: Option<f32>, } |
