Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-2303

CraftWorld.getChunkIfLoaded is aggressive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Hey,

      as you just fixed SPIGOT-2297 have a look at the last 5 lines of ActivationRange
      The code regularly accesses world.getChunkIfLoaded(...) which uses the aggressive version of the Chunk-Lookup: getLoadedChunkAt(...) in ChunkProviderServer (the one with the included "wasRecentlyUsed"-Boolean newly added to Chunks).

      This should results in cancelled Chunk-Unloads in cases where entities are on that specific chunk.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Kademlia Kademlia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: