From 48b03f9e0478cd1b0fde9037996ea23e6afa880c Mon Sep 17 00:00:00 2001 From: p2r3 Date: Thu, 21 Aug 2025 00:35:30 +0300 Subject: [PATCH] fix block changes not persisting --- src/tools.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools.c b/src/tools.c index 7effd75..9a3a9e8 100644 --- a/src/tools.c +++ b/src/tools.c @@ -386,6 +386,8 @@ void makeBlockChange (short x, uint8_t y, short z, uint8_t block) { if (x % CHUNK_SIZE < 0) anchor.x --; if (z % CHUNK_SIZE < 0) anchor.z --; anchor.hash = getChunkHash(anchor.x, anchor.z); + anchor.biome = getChunkBiome(anchor.x, anchor.z); + uint8_t is_base_block = block == getTerrainAt(x, y, z, anchor); // Look for existing block change entries and replace them