Inline HasComponent entirely
This commit is contained in:
@@ -122,7 +122,7 @@ namespace Content.Server.AI.EntitySystems
|
||||
|
||||
private void MobStateChanged(MobStateChangedMessage message)
|
||||
{
|
||||
if (!message.Entity.HasComponent<AiControllerComponent>())
|
||||
if (!IoCManager.Resolve<IEntityManager>().HasComponent<AiControllerComponent>(message.Entity.Uid))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user