From f2d8d4211bc9a70a4963513217d211c125a6b03f Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 21 Jan 2025 23:55:44 +0000 Subject: [PATCH] fix name of field in CommonPlayerSpawnInfo --- azalea-client/src/packet_handling/game.rs | 2 +- azalea-protocol/src/packets/common.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azalea-client/src/packet_handling/game.rs b/azalea-client/src/packet_handling/game.rs index 4553ae6a..b5e4432f 100644 --- a/azalea-client/src/packet_handling/game.rs +++ b/azalea-client/src/packet_handling/game.rs @@ -256,7 +256,7 @@ pub fn process_packet_events(ecs: &mut World) { let dimension_name = ResourceLocation::new(&p.common.dimension.to_string()); let Some(dimension) = dimension_type_element.map.get(&dimension_name) else { - error!("No dimension_type with name {dimension_name}") + error!("No dimension_type with name {dimension_name}"); continue; }; diff --git a/azalea-protocol/src/packets/common.rs b/azalea-protocol/src/packets/common.rs index a19c4f2a..fc78cd7a 100644 --- a/azalea-protocol/src/packets/common.rs +++ b/azalea-protocol/src/packets/common.rs @@ -7,7 +7,7 @@ use azalea_core::{ #[derive(Clone, Debug, AzBuf)] pub struct CommonPlayerSpawnInfo { - pub dimension: azalea_registry::DimensionType, + pub dimension_type: azalea_registry::DimensionType, pub dimension: ResourceLocation, pub seed: i64, pub game_type: GameMode,