fix on_chunk_register_event

This commit is contained in:
MihailRis 2026-01-17 19:33:33 +03:00
parent ea25b51485
commit d197415739

View file

@ -41,8 +41,10 @@ static void on_chunk_register_event(
if ((bits & 0x80) == 0) {
const auto& def = indices.blocks.require(id);
bits = get_events_bits(def);
if (id < sizeof(flagsCache)) {
flagsCache[id] = bits | 0x80;
}
}
bits &= 0x7F;
if (bits == 0) {
continue;