moving where CallOnClientEnterRoom is called (#1922)

This commit is contained in:
James Frowen 2020-08-14 09:47:44 +01:00 committed by GitHub
parent fc48e0ecf9
commit 71bf792db5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -221,7 +221,7 @@ public void CheckReadyToBegin()
}
}
void CallOnClientEnterRoom()
internal void CallOnClientEnterRoom()
{
OnRoomClientEnter();
foreach (NetworkRoomPlayer player in roomSlots)
@ -465,7 +465,6 @@ public override void OnStartClient()
public override void OnClientConnect(NetworkConnection conn)
{
OnRoomClientConnect(conn);
CallOnClientEnterRoom();
base.OnClientConnect(conn);
}

View File

@ -59,7 +59,7 @@ public void Start()
room.RecalculateRoomPlayerIndices();
if (NetworkClient.active)
OnClientEnterRoom();
room.CallOnClientEnterRoom();
}
else
logger.LogError("RoomPlayer could not find a NetworkRoomManager. The RoomPlayer requires a NetworkRoomManager object to function. Make sure that there is one in the scene.");