Remove unused saved-chunk section loader

Co-Authored-By: OpenAI Codex <noreply@openai.com>
This commit is contained in:
rdbtCVS
2026-10-24 23:25:01 +01:00
parent de840da0e5
commit 2a6347dc55
-17
View File
@@ -318,23 +318,6 @@ impl ChunkData {
)?))
}
pub fn load_block_section<'r>(
&self,
block: BlockPos,
registry: &'r BlockRegistry,
) -> io::Result<Option<BlockSection<'r>>> {
let Some(index) = self.section_index(block)? else {
return Ok(None);
};
let Tag::List(sections) = self.root.tag.get("sections").unwrap() else {
unreachable!()
};
sections[index]
.get("block_states")
.map(|tag| BlockSection::from_nbt(tag, registry))
.transpose()
}
/// Storage-only mutation. The caller must arrange simulation-derived updates
/// before treating this as a gameplay block placement.
pub fn set_block_data(&mut self, block: BlockPos, state: BlockState) -> io::Result<BlockState> {