Skip to content

Commit 4f65bfa

Browse files
committed
Fix dimension type
1 parent c285fad commit 4f65bfa

File tree

1 file changed

+4
-2
lines changed
  • azalea-client/src/packet_handling

1 file changed

+4
-2
lines changed

azalea-client/src/packet_handling/game.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ pub fn process_packet_events(ecs: &mut World) {
253253
continue;
254254
};
255255

256-
let dimension_name = ResourceLocation::new(&p.common.dimension.to_string());
256+
let dimension_name =
257+
ResourceLocation::new(&p.common.dimension_type.to_string());
257258

258259
let Some(dimension) = dimension_type_element.map.get(&dimension_name) else {
259260
error!("No dimension_type with name {dimension_name}");
@@ -1394,7 +1395,8 @@ pub fn process_packet_events(ecs: &mut World) {
13941395
continue;
13951396
};
13961397

1397-
let dimension_name = ResourceLocation::new(&p.common.dimension.to_string());
1398+
let dimension_name =
1399+
ResourceLocation::new(&p.common.dimension_type.to_string());
13981400

13991401
let Some(dimension) = dimension_type_element.map.get(&dimension_name) else {
14001402
error!("No dimension_type with name {dimension_name}");

0 commit comments

Comments
 (0)