Skip to content

fix: omit isLightOn so MC recomputes lighting on world load#97

Open
terbin wants to merge 1 commit into
Avanatiker:1.21.4from
terbin:fix/omit-islighton
Open

fix: omit isLightOn so MC recomputes lighting on world load#97
terbin wants to merge 1 commit into
Avanatiker:1.21.4from
terbin:fix/omit-islighton

Conversation

@terbin

@terbin terbin commented May 19, 2026

Copy link
Copy Markdown

Captured chunks were emitting isLightOn = true based on the client's view, but LightData packets mark sections as uninitialized via per-chunk bitsets, so a capture typically holds light data for only some sections. On load MC trusts the flag and skips recomputation, leaving dark patches in the captured world.

Drop the flag entirely. MC's lightmap pass on world load produces correct results from the saved sections.

Captured chunks were emitting isLightOn = true based on the client's view, but LightData packets mark sections as uninitialized via per-chunk bitsets, so a capture typically holds light data for only some sections. On load MC trusts the flag and skips recomputation, leaving dark patches in the captured world.

Drop the flag entirely. MC's lightmap pass on world load produces correct results from the saved sections.
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.

1 participant