Merge pull request #691 from MihailRis/fixes

fixes
This commit is contained in:
MihailRis 2025-11-22 18:08:23 +03:00 committed by GitHub
commit da7a541013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ static void on_chunk_register_event(
uint8_t flagsCache[1024] {};
for (int i = totalBegin; i <= totalEnd; i++) {
for (int i = totalBegin; i < totalEnd; i++) {
blockid_t id = voxels[i].id;
uint8_t bits = id < sizeof(flagsCache) ? flagsCache[id] : 0;
if ((bits & 0x80) == 0) {