1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 23:44:38 +00:00

Fix dimension type

This commit is contained in:
Shayne Hartford 2025-02-18 01:23:22 -05:00
commit 4f65bfaa32

View file

@ -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}");