Use ActorComponent instead of IActorComponent or BasicActorComponent. (#3966)
This commit is contained in:
committed by
GitHub
parent
3319dc0599
commit
462cddf860
@@ -156,7 +156,7 @@ namespace Content.Server.GameObjects.Components.Disposal
|
||||
/// <param name="args">Data relevant to the event such as the actor which triggered it.</param>
|
||||
void IActivate.Activate(ActivateEventArgs args)
|
||||
{
|
||||
if (!args.User.TryGetComponent(out IActorComponent? actor))
|
||||
if (!args.User.TryGetComponent(out ActorComponent? actor))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -180,10 +180,10 @@ namespace Content.Server.GameObjects.Components.Disposal
|
||||
base.OnRemove();
|
||||
}
|
||||
|
||||
private void OpenUserInterface(IActorComponent actor)
|
||||
private void OpenUserInterface(ActorComponent actor)
|
||||
{
|
||||
UpdateUserInterface();
|
||||
UserInterface?.Open(actor.playerSession);
|
||||
UserInterface?.Open(actor.PlayerSession);
|
||||
}
|
||||
|
||||
[Verb]
|
||||
@@ -205,7 +205,7 @@ namespace Content.Server.GameObjects.Components.Disposal
|
||||
|
||||
protected override void Activate(IEntity user, DisposalRouterComponent component)
|
||||
{
|
||||
if (user.TryGetComponent(out IActorComponent? actor))
|
||||
if (user.TryGetComponent(out ActorComponent? actor))
|
||||
{
|
||||
component.OpenUserInterface(actor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user