mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Update NetworkIdentity.cs
checking cache instead of property
This commit is contained in:
parent
fb13773f5d
commit
08585c7379
@ -242,7 +242,7 @@ public NetworkBehaviour[] NetworkBehaviours
|
||||
void CreateNetworkBehavioursCache()
|
||||
{
|
||||
networkBehavioursCache = GetComponents<NetworkBehaviour>();
|
||||
if (NetworkBehaviours.Length > 64)
|
||||
if (networkBehavioursCache.Length > 64)
|
||||
{
|
||||
Debug.LogError($"Only 64 NetworkBehaviour components are allowed for NetworkIdentity: {name} because of the dirtyComponentMask", this);
|
||||
// Log error once then resize array so that NetworkIdentity does not throw exceptions later
|
||||
|
Loading…
Reference in New Issue
Block a user