Update RespawnManager.cs

This commit is contained in:
JohnCorby 2022-02-03 18:12:23 -08:00
parent 912e90c1bf
commit dae0198bc4

View File

@ -32,7 +32,11 @@ namespace QSB.RespawnSync
QSBNetworkManager.singleton.OnClientConnected += OnConnected;
QSBNetworkManager.singleton.OnClientDisconnected += OnDisconnected;
QSBPlayerManager.OnRemovePlayer += player => _playersPendingRespawn.Remove(player);
QSBPlayerManager.OnRemovePlayer += player =>
{
_playersPendingRespawn.Remove(player);
UpdateRespawnNotification();
};
}
private void OnConnected()