Inline GetComponent
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Content.Server.Administration.Commands
|
||||
mind.TransferTo(ghost.Uid);
|
||||
}
|
||||
|
||||
var comp = ghost.GetComponent<GhostComponent>();
|
||||
var comp = IoCManager.Resolve<IEntityManager>().GetComponent<GhostComponent>(ghost.Uid);
|
||||
EntitySystem.Get<SharedGhostSystem>().SetCanReturnToBody(comp, canReturn);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace Content.Server.Administration.Commands
|
||||
pdaComponent.ContainedID.FullName = target.Name;
|
||||
}
|
||||
|
||||
inventoryComponent.Equip(slot, equipmentEntity.GetComponent<ItemComponent>(), false);
|
||||
inventoryComponent.Equip(slot, IoCManager.Resolve<IEntityManager>().GetComponent<ItemComponent>(equipmentEntity.Uid), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user