From fd9708c9510cbbd19f50899ac0eae465d1b37228 Mon Sep 17 00:00:00 2001 From: DaniD3v Date: Wed, 28 Aug 2024 11:50:11 +0200 Subject: [PATCH] Made ChunkNBT struct slightly more readable --- pumpkin-world/src/chunk.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pumpkin-world/src/chunk.rs b/pumpkin-world/src/chunk.rs index d57b1ae18..8bf95e63c 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, }