diff --git a/pumpkin-world/src/chunk.rs b/pumpkin-world/src/chunk.rs index d57b1ae1..8bf95e63 100644 --- a/pumpkin-world/src/chunk.rs +++ b/pumpkin-world/src/chunk.rs @@ -61,12 +61,14 @@ struct ChunkSection { } #[derive(Deserialize, Debug)] -#[allow(dead_code)] +#[serde(rename_all = "PascalCase")] struct ChunkNbt { - #[serde(rename = "DataVersion")] + #[allow(dead_code)] data_version: usize, + + #[serde(rename = "sections")] sections: Vec, - #[serde(rename = "Heightmaps")] + heightmaps: ChunkHeightmaps, }