Sometimes I get this error when I do a component lookup. Why does it happen, and how do I avoid it?
This is how I get the lookup SystemAPI.GetComponentLookup<MultiplayerComponent>(true); And the error is thrown in a SystemBase on this line of code if (!SystemAPI.GetComponentLookup<MultiplayerComponent>(true).TryGetComponent(entity, out MultiplayerComponent multiplayerComponent))
...```
btw, the MultiplayerSystem is a SystemBase that uses Entities.ForEach to write to the MultiplayerComponent.
Any ideas?