Closed satoshinm closed 7 years ago
Testing as follows: webguest1 signs in, webguest2 signs in (sees 1), then logs out (1 sees 2 disappear). However once another user, webguest3 signs back in, he sees both! It as if the "delete entity" message is only sent to logged-in users, but there is missing cleanup on the backend.
Web entities persisting was a real issue, but a different issue. Bukkit entities still persist unexpectedly:
The second problem is upon closing the server. Adding a cleanup step to delete these entities since they won;t get cleaned up during normal client disconnect. This fixes /stop, however, note that it won't fix abruptly terminating the server with ^C not cleaning up the entities, because the plugin has no chance to do so.
https://www.spigotmc.org/threads/websandboxmc.232807/#post-2362946
I think I've seen this too, maybe it is related to the Entity map:
Can I safely store
Entity
in a map, long-term, or does it need to be looked up by entity ID or something? Either way, something appears broken in tracking the entities. Another test is to sheer an web player entity's sheep, or kill it, in both cases the web player should be notified, but they aren't always.