mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-02 07:35:08 +02:00
fix block changes not persisting
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user