Skip to content

Commit c4f3739

Browse files
committed
InterestManagement: Syntax
1 parent ee2a411 commit c4f3739

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎Assets/Mirror/Core/InterestManagement.cs‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,8 @@ public override void Rebuild(NetworkIdentity identity, bool initialize)
134134
// => that was not intended, but let's keep it as it is so we
135135
// don't break anything in host mode. it's way easier than
136136
// iterating all identities in a special function in StartHost.
137-
if (initialize)
138-
{
139-
if (!newObservers.Contains(NetworkServer.localConnection))
140-
{
141-
SetHostVisibility(identity, false);
142-
}
143-
}
137+
if (initialize && !newObservers.Contains(NetworkServer.localConnection))
138+
SetHostVisibility(identity, false);
144139
}
145140
}
146141
}

0 commit comments

Comments
 (0)