mojira.dev
MC-169498

Empty top subchunks don't update skylight in some cases

The bug

In some rare cases, sky light can remain after breaking a block.

How to reproduce

All steps are also demonstrated in the

[media]

video.

  1. Get a flat surface at a sub chunk. A superflat world with only the first 16 blocks works great.

  2. Make sure no blocks are in this subchunk or in the neighboring subchunks at the same level or higher.

  3. Place a solid block with one air block between the surface. This is shown in "picture-1.png".

  4. After removing this block, notice that the darker light level remains. See "picture-2.png". This is more clear with "Smooth Lighting: OFF", which you can see in "picture-3.png".

  5. Now place a block directly on top of the surface, and place a solid block with an air block between the surface near it. This is the setup shown in "picture-4.png".

  6. Removing this block, the light level updates correctly. See "picture-5.png"

The exact place that surrounding blocks affect whether or not the sky light is updated, is unclear to me. There is also a zone where having blocks won't update the skylight, but replacing blocks in that zone will update the skylight.

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media]
violine1101

Confirmed. Easiest to see with lighting set to moody.

PhiPro

An analysis and solution is given in MC-170010.

This is simply a rendering issue: the bottom chunk is not marked for rerendering. Causing any block update in that chunk or reloadong the world will fix the issue.
The actual skylight as shown in F3 is correct.

migrated

Yep, can confirm as well!

Interesting rendering issue.

ampolive

Can confirm in 1.17.1.

Lunarian

Can confirm: 23w12a

 

Video: YouTube

Misode

gegy

Confirmed

Important

Lighting

mojang_internal_1

1.15.1, 1.15.2, 20w06a, 20w18a, 20w20b, ..., 1.16.2, 1.17.1, 1.18, 1.19.4, 23w12a

23w16a

Retrieved