EntityAddToWorld/EntityRemoveFromWorld fired incorrectly in some cases #9581
Labels
status: accepted
Disputed bug is accepted as valid or Feature accepted as desired to be added.
status: unlikely
Unlikely to ever be worked on due to complexity or risk
type: bug
Something doesn't work as it was intended to.
Expected behavior
When an entity is added EntityAddToWorld should fire once and EntityRemoveFromWorld should not fire
Observed/Actual behavior
When specific entities are loaded it will first call EntityAddToWorldEvent, then EntityRemoveFromWorldEvent and again EntityAddToWorldEvent for the same entity
Steps/models to reproduce
Easiest way I could reproduce it is simply spawning an entity and rejoining
Summoning it initially has no issues
But when rejoining it triggers the event like shown below
Base.Profile.2023.08.06.-.00.59.56.10.mp4
Plugin and Datapack List
[00:50:29 INFO]: Server Plugins (1):
[00:50:29 INFO]: Paper Plugins:
[00:50:29 INFO]: - untitled1
Paper version
[00:50:31 INFO]: Checking version, please wait...
[00:50:31 INFO]: This server is running Paper version git-Paper-103 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: 2c55dd8)
You are running the latest version
Other
untitled-plugin:
The text was updated successfully, but these errors were encountered: