mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
commit
da7a541013
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ static void on_chunk_register_event(
|
||||||
|
|
||||||
uint8_t flagsCache[1024] {};
|
uint8_t flagsCache[1024] {};
|
||||||
|
|
||||||
for (int i = totalBegin; i <= totalEnd; i++) {
|
for (int i = totalBegin; i < totalEnd; i++) {
|
||||||
blockid_t id = voxels[i].id;
|
blockid_t id = voxels[i].id;
|
||||||
uint8_t bits = id < sizeof(flagsCache) ? flagsCache[id] : 0;
|
uint8_t bits = id < sizeof(flagsCache) ? flagsCache[id] : 0;
|
||||||
if ((bits & 0x80) == 0) {
|
if ((bits & 0x80) == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue