-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
This server is running CraftBukkit version git-Spigot-69774b3-3b8f5be (MC: 1.13) (Implementing API version 1.13-R0.1-SNAPSHOT)
-
Yes
I randomly get errors using the Citizens plugin about Entity already tracked.
I traced it down to when a plugin spawns an entity in the ChunkLoadEvent (Citizens does this)
This causes entities to be added to the chunk, but during a stage that the server hasn't called .addEntities() yet.
Then when the server does call it, the entity is re-added to the world a 2nd time and triggers lots of warnings and errors.
This is different from previous versions where ChunkLoadEvent was called after entities were added to the world.
Entities need to be added from the chunk before ChunkLoadEvent fires, so that ChunkLoadEvent can also (properly) see the entities in the chunk.
I've moved the call.
Please follow instructions in future.