-
What caused the panic here?
I am making an online game. Is that panic a necessary code? Error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You shouldn't be inserting components on despawned entities. You'll need to add a mechanism that removes the stored |
Beta Was this translation helpful? Give feedback.
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 asOption<Entity>
then just set it toNone
) when the client disconnects as it's now an invalid entity.