Obsolete refactor - ConnectedClient to Channel (#24409)
This commit is contained in:
@@ -163,7 +163,7 @@ namespace Content.Server.Ghost.Roles
|
||||
var response = new GhostUpdateGhostRoleCountEvent(GetGhostRolesInfo().Length);
|
||||
foreach (var player in _playerManager.Sessions)
|
||||
{
|
||||
RaiseNetworkEvent(response, player.ConnectedClient);
|
||||
RaiseNetworkEvent(response, player.Channel);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -173,7 +173,7 @@ namespace Content.Server.Ghost.Roles
|
||||
if (args.NewStatus == SessionStatus.InGame)
|
||||
{
|
||||
var response = new GhostUpdateGhostRoleCountEvent(_ghostRoles.Count);
|
||||
RaiseNetworkEvent(response, args.Session.ConnectedClient);
|
||||
RaiseNetworkEvent(response, args.Session.Channel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user