online fix
This commit is contained in:
@@ -256,7 +256,7 @@ namespace MegaKoop.Game.Networking
|
||||
{
|
||||
// Ensure network identity is deterministic across clients.
|
||||
var identity = clone.GetComponent<NetworkIdentity>() ?? clone.AddComponent<NetworkIdentity>();
|
||||
identity.SetNetworkId(index + 1);
|
||||
identity.SetNetworkId(NetworkIdAllocator.PlayerIdStart + index);
|
||||
|
||||
var bridge = clone.GetComponent<SteamCharacterNetworkBridge>() ?? clone.AddComponent<SteamCharacterNetworkBridge>();
|
||||
bridge.AssignOwner(ParseSteamId(info.SteamId), info.IsLocal);
|
||||
|
||||
Reference in New Issue
Block a user