Use ActorComponent instead of IActorComponent or BasicActorComponent. (#3966)
This commit is contained in:
committed by
GitHub
parent
3319dc0599
commit
462cddf860
@@ -192,7 +192,7 @@ namespace Content.Server.GameObjects.EntitySystems.Click
|
||||
/// <param name="uid"></param>
|
||||
internal void UseItemInHand(IEntity entity, EntityCoordinates coords, EntityUid uid)
|
||||
{
|
||||
if (entity.HasComponent<BasicActorComponent>())
|
||||
if (entity.HasComponent<ActorComponent>())
|
||||
{
|
||||
throw new InvalidOperationException();
|
||||
}
|
||||
|
||||
@@ -49,12 +49,12 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
private void HandleActivate(EntityUid uid, CloningPodComponent component, ActivateInWorldMessage args)
|
||||
{
|
||||
if (!component.Powered ||
|
||||
!args.User.TryGetComponent(out IActorComponent? actor))
|
||||
!args.User.TryGetComponent(out ActorComponent? actor))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
component.UserInterface?.Open(actor.playerSession);
|
||||
component.UserInterface?.Open(actor.PlayerSession);
|
||||
}
|
||||
|
||||
private void HandleMindAdded(EntityUid uid, BeingClonedComponent component, MindAddedMessage message)
|
||||
|
||||
Reference in New Issue
Block a user