Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-169498

Empty top subchunks don't update skylight in some cases


    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w16a
    • 1.15.1, 1.15.2, 20w06a, 20w18a, 20w20b, 20w22a, 1.16 Pre-release 3, 1.16.2, 1.17.1, 1.18, 1.19.4, 23w12a
    • Confirmed
    • Lighting
    • Important

      The bug

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

      How to reproduce

      All steps are also demonstrated in the showcase.mp4 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.

        1. picture-1.png
          337 kB
        2. picture-2.png
          460 kB
        3. picture-3.png
          335 kB
        4. picture-4.png
          335 kB
        5. picture-5.png
          375 kB
        6. showcase.mp4
          2.69 MB

            gegy1000 [Mojang] Gegy
            Misoloo [Helper] Misode
            13 Vote for this issue
            7 Start watching this issue