Inline RemoveComponent

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 11:34:00 +01:00
parent f64df117be
commit e0fe09cb46
11 changed files with 14 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ namespace Content.Server.AI.Commands
// TODO: IMover refffaaccctttooorrr
if (ent.HasComponent<IMoverComponent>())
{
ent.RemoveComponent<IMoverComponent>();
IoCManager.Resolve<IEntityManager>().RemoveComponent<IMoverComponent>(ent.Uid);
}
var comp = IoCManager.Resolve<IEntityManager>().AddComponent<UtilityAi>(ent);