aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-01-21 23:55:44 +0000
committermat <git@matdoes.dev>2025-01-21 23:55:44 +0000
commitf2d8d4211bc9a70a4963513217d211c125a6b03f (patch)
treeffc0845c6d46053f32e6316d9f0f75e273abc153
parentb0b57aa7d4319111230d6f499ed5f4642b5aa1e1 (diff)
downloadazalea-drasl-f2d8d4211bc9a70a4963513217d211c125a6b03f.tar.xz
fix name of field in CommonPlayerSpawnInfo
-rw-r--r--azalea-client/src/packet_handling/game.rs2
-rw-r--r--azalea-protocol/src/packets/common.rs2
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,