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

CraftWorld.getChunkIfLoaded is aggressive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: