Skip to content

Light leak bug in getLightSafe() at chunk top boundary#703

Open
github-actions[bot] wants to merge 1 commit into
devfrom
opencode/schedule-580f7c-20260506195611
Open

Light leak bug in getLightSafe() at chunk top boundary#703
github-actions[bot] wants to merge 1 commit into
devfrom
opencode/schedule-580f7c-20260506195611

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 6, 2026

Issue created successfully at #702.

Finding: getLightSafe() in modules/world-core/src/chunk.zig:152 returns MAX_LIGHT (full skylight) when y >= CHUNK_SIZE_Y (256), causing light to leak at chunk tops. The fix is to return PackedLight.init(0, 0) instead, consistent with other out-of-bounds behavior.

Triggered by scheduled workflow

New%20session%20-%202026-05-06T19%3A56%3A09.915Z
opencode session  |  github run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants