From 3053238279fccfefc35fc5fe9ff3b0be0185e4fb Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 19 Feb 2026 03:19:05 +0800 Subject: fix incorrect protocol impls for ClientboundPlayerInfoUpdate and recipe packets --- azalea-protocol/src/common/recipe.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'azalea-protocol/src/common') diff --git a/azalea-protocol/src/common/recipe.rs b/azalea-protocol/src/common/recipe.rs index 9a59cc4b..e0e10ecc 100644 --- a/azalea-protocol/src/common/recipe.rs +++ b/azalea-protocol/src/common/recipe.rs @@ -1,8 +1,8 @@ use azalea_buf::AzBuf; use azalea_inventory::ItemStack; -use azalea_registry::{HolderSet, builtin::ItemKind, identifier::Identifier}; +use azalea_registry::{HolderSet, builtin::ItemKind, data::TrimPattern, identifier::Identifier}; -/// [`azalea_registry::RecipeDisplay`] +/// [`azalea_registry::builtin::RecipeDisplay`] #[derive(AzBuf, Clone, Debug, PartialEq)] pub enum RecipeDisplayData { Shapeless(ShapelessCraftingRecipeDisplay), @@ -58,21 +58,21 @@ pub struct Ingredient { pub allowed: HolderSet, } -/// [`azalea_registry::SlotDisplay`] +/// [`azalea_registry::builtin::SlotDisplay`] #[derive(AzBuf, Clone, Debug, PartialEq)] pub enum SlotDisplayData { Empty, AnyFuel, - ItemKind(ItemStackDisplay), + Item(ItemSlotDisplay), ItemStack(ItemStackSlotDisplay), - Tag(Identifier), + Tag(TagSlotDisplay), SmithingTrim(Box), WithRemainder(Box), Composite(CompositeSlotDisplay), } #[derive(AzBuf, Clone, Debug, PartialEq)] -pub struct ItemStackDisplay { +pub struct ItemSlotDisplay { pub item: ItemKind, } #[derive(AzBuf, Clone, Debug, PartialEq)] @@ -81,13 +81,13 @@ pub struct ItemStackSlotDisplay { } #[derive(AzBuf, Clone, Debug, PartialEq)] pub struct TagSlotDisplay { - pub tag: ItemKind, + pub tag: Identifier, } #[derive(AzBuf, Clone, Debug, PartialEq)] pub struct SmithingTrimDemoSlotDisplay { pub base: SlotDisplayData, pub material: SlotDisplayData, - pub pattern: SlotDisplayData, + pub pattern: TrimPattern, } #[derive(AzBuf, Clone, Debug, PartialEq)] pub struct WithRemainderSlotDisplay { -- cgit v1.2.3