Use ActorComponent instead of IActorComponent or BasicActorComponent. (#3966)

This commit is contained in:
Vera Aguilera Puerto
2021-05-12 13:42:18 +02:00
committed by GitHub
parent 3319dc0599
commit 462cddf860
65 changed files with 220 additions and 220 deletions

View File

@@ -116,7 +116,7 @@ namespace Content.Server.GameObjects.Components.Morgue
{
count++;
if (!hasMob && entity.HasComponent<IBody>()) hasMob = true;
if (!hasSoul && entity.TryGetComponent<BasicActorComponent>(out var actor) && actor.playerSession != null) hasSoul = true;
if (!hasSoul && entity.TryGetComponent<ActorComponent>(out var actor) && actor.PlayerSession != null) hasSoul = true;
}
Appearance?.SetData(MorgueVisuals.HasContents, count > 0);
Appearance?.SetData(MorgueVisuals.HasMob, hasMob);