Use ActorComponent instead of IActorComponent or BasicActorComponent. (#3966)
This commit is contained in:
committed by
GitHub
parent
3319dc0599
commit
462cddf860
@@ -213,10 +213,10 @@ namespace Content.Server.Mobs
|
||||
throw new ArgumentException("That entity already has a mind.", nameof(entity));
|
||||
}
|
||||
|
||||
if (entity.TryGetComponent(out IActorComponent? actor))
|
||||
if (entity.TryGetComponent(out ActorComponent? actor))
|
||||
{
|
||||
// Happens when transferring to your currently visited entity.
|
||||
if (actor.playerSession != Session)
|
||||
if (actor.PlayerSession != Session)
|
||||
{
|
||||
throw new ArgumentException("Visit target already has a session.", nameof(entity));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user