From 889eba1df501e190f9019cc42bad1606477c4cce Mon Sep 17 00:00:00 2001 From: Mattes D Date: Fri, 26 May 2023 12:59:31 +0200 Subject: Anvil: Allow loading chunks without HeightMap. --- src/SetChunkData.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/SetChunkData.h') diff --git a/src/SetChunkData.h b/src/SetChunkData.h index 8a4a8b995..763f478be 100644 --- a/src/SetChunkData.h +++ b/src/SetChunkData.h @@ -1,8 +1,3 @@ - -// SetChunkData.h - -// Defines the SetChunkData struct that contains the data for a loaded / generated chunk, ready to be set - #pragma once #include "ChunkData.h" @@ -12,6 +7,7 @@ +/** Contains the data for a loaded / generated chunk, ready to be set into a cWorld. */ struct SetChunkData { /** Initialise the structure with chunk coordinates. @@ -33,4 +29,8 @@ struct SetChunkData cBlockEntities BlockEntities; bool IsLightValid; + + + /** Recalculates the HeightMap based on BlockData contents. */ + void UpdateHeightMap(); }; -- cgit v1.2.3