Skip to content

Fix NPE in SkylightManager - #32

Merged
FalsePattern merged 1 commit into
LegacyModdingMC:masterfrom
RecursivePineapple:fix-skylight-npe
Jul 27, 2026
Merged

Fix NPE in SkylightManager#32
FalsePattern merged 1 commit into
LegacyModdingMC:masterfrom
RecursivePineapple:fix-skylight-npe

Conversation

@RecursivePineapple

Copy link
Copy Markdown
Contributor

In Cubic Chunks, when we travel to a dimension without skylight (nether, end, thaumcraft dungeon dim) the game crashes since it's trying to read the data field on an invalid NibbleArray.

The fix is to copy the existing logic (if (!chunk.worldObj.provider.hasNoSky)) into the CC buffer methods.

@FalsePattern
FalsePattern merged commit a05638f into LegacyModdingMC:master Jul 27, 2026
1 check passed
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.

2 participants