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

Chunk.getEntities() is missing some mobs

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • Mac OS

      openjdk 16.0.1

      Zulu16.30+19-CA (build 16.0.1+9)

    • 3147-Spigot-9472b09-d7ef1e9 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT)
    • Yes

    Description

      I am checking Chunk.getEntities() inside the ChunkLoadEvent and not seeing any entities ever show up, even as I fly around seeing persistent mobs respawning.

      I have also tried a 1-tick delayed task to check for entities and it is still empty.

      In the 1-tick delayed task I do see Players show up in the list, so it's not always completely empty. I also think I am seeing mobs spawned by my own plugin show up, though not again on chunk unload/load if I am setting Entity.setPersist (even though they do respawn).

      I will keep investigating and try to come up with a good test plugin, I'm not really sure yet what is going on but thought I'd submit the issue in case it rings any bells.

      Thank you all for your hard work on this update, I imagine it must've been a larger effort than usual!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              NathanWolf Nathan Wolf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: