Use ActorComponent instead of IActorComponent or BasicActorComponent. (#3966)
This commit is contained in:
committed by
GitHub
parent
3319dc0599
commit
462cddf860
@@ -186,9 +186,9 @@ namespace Content.Server.GameObjects.Components.Disposal
|
||||
{
|
||||
TryQueueEngage();
|
||||
|
||||
if (entity.TryGetComponent(out IActorComponent? actor))
|
||||
if (entity.TryGetComponent(out ActorComponent? actor))
|
||||
{
|
||||
UserInterface?.Close(actor.playerSession);
|
||||
UserInterface?.Close(actor.PlayerSession);
|
||||
}
|
||||
|
||||
UpdateVisualState();
|
||||
@@ -688,7 +688,7 @@ namespace Content.Server.GameObjects.Components.Disposal
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!eventArgs.User.TryGetComponent(out IActorComponent? actor))
|
||||
if (!eventArgs.User.TryGetComponent(out ActorComponent? actor))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -699,7 +699,7 @@ namespace Content.Server.GameObjects.Components.Disposal
|
||||
{
|
||||
UpdateTargetList();
|
||||
UpdateInterface();
|
||||
UserInterface?.Open(actor.playerSession);
|
||||
UserInterface?.Open(actor.PlayerSession);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -708,14 +708,14 @@ namespace Content.Server.GameObjects.Components.Disposal
|
||||
|
||||
void IActivate.Activate(ActivateEventArgs eventArgs)
|
||||
{
|
||||
if (!eventArgs.User.TryGetComponent(out IActorComponent? actor))
|
||||
if (!eventArgs.User.TryGetComponent(out ActorComponent? actor))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (IsValidInteraction(eventArgs))
|
||||
{
|
||||
UserInterface?.Open(actor.playerSession);
|
||||
UserInterface?.Open(actor.PlayerSession);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user