Skip to content

Commit

Permalink
Made ChunkNBT struct slightly more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniD3v committed Aug 28, 2024
1 parent 2a41393 commit 45da395
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pumpkin-world/src/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ChunkSection>,
#[serde(rename = "Heightmaps")]

heightmaps: ChunkHeightmaps,
}

Expand Down

0 comments on commit 45da395

Please sign in to comment.