Use ActorComponent instead of IActorComponent or BasicActorComponent. (#3966)
This commit is contained in:
committed by
GitHub
parent
3319dc0599
commit
462cddf860
@@ -57,10 +57,10 @@ namespace Content.Server.GameObjects.Components.Headset
|
||||
{
|
||||
if (Owner.TryGetContainer(out var container))
|
||||
{
|
||||
if (!container.Owner.TryGetComponent(out IActorComponent? actor))
|
||||
if (!container.Owner.TryGetComponent(out ActorComponent? actor))
|
||||
return;
|
||||
|
||||
var playerChannel = actor.playerSession.ConnectedClient;
|
||||
var playerChannel = actor.PlayerSession.ConnectedClient;
|
||||
|
||||
var msg = _netManager.CreateNetMessage<MsgChatMessage>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user