mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: SendToObservers sends to that exact connection if it is detected as local connection, instead of falling back to the .localConnection field which might be something completely different.
This commit is contained in:
parent
a497803de0
commit
4267983139
@ -239,7 +239,7 @@ static bool SendToObservers<T>(NetworkIdentity identity, T msg, int channelId =
|
||||
{
|
||||
// use local connection directly because it doesn't send via transport
|
||||
if (kvp.Value is ULocalConnectionToClient)
|
||||
result &= localConnection.Send(segment);
|
||||
result &= kvp.Value.Send(segment);
|
||||
// gather all internet connections
|
||||
else
|
||||
connectionIdsCache.Add(kvp.Key);
|
||||
|
Loading…
Reference in New Issue
Block a user