refactor: fixing type inconsistencies in cache types

This commit is contained in:
2026-11-18 00:01:47 +01:00
parent 95a45a57d7
commit b65632aab3
6 changed files with 54 additions and 46 deletions
+10 -10
View File
@@ -1876,8 +1876,8 @@ fn fullfill_request_tree<const N: usize>(
children: [ChildInformation::new(false, root.color.3 != 0.); N * N * N],
},
LocationPage {
node_id: StructureLocator::from(TreeLocator::<N>::root()).0,
producer_id: 0,
node_id: StructureLocator::from(TreeLocator::<N>::root()),
producer_id: ProducerId(0),
anchor: StructureAnchor::zeroed(),
},
)
@@ -1902,8 +1902,8 @@ fn fullfill_request_tree<const N: usize>(
children: std::array::from_fn(|i| children[i]),
},
LocationPage {
node_id: StructureLocator::from(TreeLocator::<N>::root()).0,
producer_id: 0,
node_id: StructureLocator::from(TreeLocator::<N>::root()),
producer_id: ProducerId(0),
anchor: StructureAnchor::zeroed(),
},
)
@@ -1939,8 +1939,8 @@ fn fullfill_request_tree<const N: usize>(
children: std::array::from_fn(|i| children[i]),
},
LocationPage {
node_id: StructureLocator::from(loc).0,
producer_id: 0,
node_id: StructureLocator::from(loc),
producer_id: ProducerId(0),
anchor: StructureAnchor::zeroed(),
},
)
@@ -1993,8 +1993,8 @@ where
node = generator.produce_node(0, 0, 0, 0, (chunk_x, chunk_y, chunk_z));
let locator: StructureLocator = TreeLocator::<N>::root().into();
location = LocationPage {
node_id: locator.0,
producer_id: request.producer_id.0,
node_id: locator,
producer_id: request.producer_id,
anchor,
};
}
@@ -2031,8 +2031,8 @@ where
let st_loc: StructureLocator = child_locator.into();
location = LocationPage {
node_id: st_loc.0 as u32,
producer_id: request.producer_id.0,
node_id: st_loc,
producer_id: request.producer_id,
anchor,
};
}