Inline HasComponent entirely
This commit is contained in:
@@ -39,7 +39,7 @@ namespace Content.Server.GameTicking.Presets
|
||||
{
|
||||
var playerEntity = mind.OwnedEntity;
|
||||
|
||||
if (playerEntity != null && playerEntity.HasComponent<GhostComponent>())
|
||||
if (playerEntity != null && IoCManager.Resolve<IEntityManager>().HasComponent<GhostComponent>(playerEntity.Uid))
|
||||
return false;
|
||||
|
||||
if (mind.VisitingEntity != null)
|
||||
|
||||
@@ -208,7 +208,7 @@ namespace Content.Server.GameTicking.Presets
|
||||
}
|
||||
else if (!mobState.IsDead())
|
||||
{
|
||||
if (entity.HasComponent<HandsComponent>())
|
||||
if (IoCManager.Resolve<IEntityManager>().HasComponent<HandsComponent>(entity.Uid))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user