sync block light to the client (kinda)

This commit is contained in:
p2r3
2025-08-24 22:28:03 +03:00
parent 549745516f
commit 623f7765d7
2 changed files with 12 additions and 0 deletions

View File

@@ -380,6 +380,7 @@ uint8_t buildChunkSection (int cx, int cy, int cz) {
// runs per block, as this is more expensive than terrain generation.
for (int i = 0; i < block_changes_count; i ++) {
if (block_changes[i].block == 0xFF) continue;
if (block_changes[i].block == B_torch) continue;
if ( // Check if block is within this chunk section
block_changes[i].x >= cx && block_changes[i].x < cx + 16 &&
block_changes[i].y >= cy && block_changes[i].y < cy + 16 &&