Skip to content

What caused the panic here? #6876

Answered by MrGVSV
hiaro81 asked this question in Q&A
Dec 7, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You shouldn't be inserting components on despawned entities. You'll need to add a mechanism that removes the stored Entity (if you store it as Option<Entity> then just set it to None) when the client disconnects as it's now an invalid entity.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hiaro81
Comment options

Answer selected by Vrixyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants