From 84cd261118c9d1e3145d4d1751c0d22098cd8cd8 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 9 Dec 2025 11:23:45 -0600 Subject: 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 --- azalea-core/src/registry_holder.rs | 9 +++++++-- azalea-core/src/sound.rs | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'azalea-core/src') 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, } -#[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, + #[serde(skip_serializing_if = "is_default")] pub death_message_type: Option, } 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, + pub sound_id: Identifier, + pub range: Option, } -- cgit v1.2.3