diff --git a/azalea-client/src/packet_handling/game.rs b/azalea-client/src/packet_handling/game.rs index 207cdd917..f3060568a 100644 --- a/azalea-client/src/packet_handling/game.rs +++ b/azalea-client/src/packet_handling/game.rs @@ -253,7 +253,8 @@ pub fn process_packet_events(ecs: &mut World) { continue; }; - let dimension_name = ResourceLocation::new(&p.common.dimension.to_string()); + let dimension_name = + ResourceLocation::new(&p.common.dimension_type.to_string()); let Some(dimension) = dimension_type_element.map.get(&dimension_name) else { error!("No dimension_type with name {dimension_name}"); @@ -1394,7 +1395,8 @@ pub fn process_packet_events(ecs: &mut World) { continue; }; - let dimension_name = ResourceLocation::new(&p.common.dimension.to_string()); + let dimension_name = + ResourceLocation::new(&p.common.dimension_type.to_string()); let Some(dimension) = dimension_type_element.map.get(&dimension_name) else { error!("No dimension_type with name {dimension_name}"); diff --git a/azalea-registry/src/extra.rs b/azalea-registry/src/extra.rs index ba5d85592..d31f9d4ff 100644 --- a/azalea-registry/src/extra.rs +++ b/azalea-registry/src/extra.rs @@ -30,9 +30,9 @@ impl Default for WolfVariant { registry! { enum DimensionType { Overworld => "minecraft:overworld", - Nether => "minecraft:the_nether", - End => "minecraft:the_end", OverworldCaves => "minecraft:overworld_caves", + End => "minecraft:the_end", + Nether => "minecraft:the_nether", } }