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

Getting the lightlevel of a block at a chunkborder causes the neighbor chunk to be loaded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 1.9.1, Minecraft 1.9.2
    • None
    • Unconfirmed

      Hey,

      several frequently called methods need to check the light-level of a block. For example crops, grass etc. to see if they can grow or not.

      The check for the current light at a specific location looks at the light-values of the five blocks near it (up,north,east,south,west). If a neighboring chunk is not loaded it will be synchronously be loaded at this point.

      As the algorithm for growth is pretty basic an vague this happens very often resulting in a increased base load of the whole process.

      A simple fix would be to return a light level of zero if the chunk is currently not loaded. The impact on gameplay would be negligible.

            grum [Mojang] Grum (Erik Broes)
            Kademlia Kademlia
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: