Fixed issue causing the wrong clientId to get added
This commit is contained in:
parent
4e16d9c913
commit
5663285309
@ -78,7 +78,7 @@ namespace MLAPI.NetworkingManagerComponents.Core
|
|||||||
msDelay = 0;
|
msDelay = 0;
|
||||||
netManager.networkTime = netTime + (msDelay / 1000f);
|
netManager.networkTime = netTime + (msDelay / 1000f);
|
||||||
|
|
||||||
netManager.connectedClients.Add(clientId, new NetworkedClient() { ClientId = clientId });
|
netManager.connectedClients.Add(netManager.MyClientId, new NetworkedClient() { ClientId = netManager.MyClientId });
|
||||||
int clientCount = reader.ReadInt();
|
int clientCount = reader.ReadInt();
|
||||||
for (int i = 0; i < clientCount; i++)
|
for (int i = 0; i < clientCount; i++)
|
||||||
{
|
{
|
||||||
@ -128,7 +128,7 @@ namespace MLAPI.NetworkingManagerComponents.Core
|
|||||||
|
|
||||||
netManager._isClientConnected = true;
|
netManager._isClientConnected = true;
|
||||||
if (netManager.OnClientConnectedCallback != null)
|
if (netManager.OnClientConnectedCallback != null)
|
||||||
netManager.OnClientConnectedCallback.Invoke(clientId);
|
netManager.OnClientConnectedCallback.Invoke(netManager.MyClientId);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static void HandleAddObject(uint clientId, byte[] incommingData, int channelId)
|
internal static void HandleAddObject(uint clientId, byte[] incommingData, int channelId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user