Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -320,7 +320,7 @@ public sealed partial class ShuttleConsoleSystem : SharedShuttleConsoleSystem
|
||||
|
||||
public void AddPilot(EntityUid uid, EntityUid entity, ShuttleConsoleComponent component)
|
||||
{
|
||||
if (!EntityManager.TryGetComponent(entity, out PilotComponent? pilotComponent)
|
||||
if (!TryComp(entity, out PilotComponent? pilotComponent)
|
||||
|| component.SubscribedPilots.Contains(entity))
|
||||
{
|
||||
return;
|
||||
@@ -334,7 +334,7 @@ public sealed partial class ShuttleConsoleSystem : SharedShuttleConsoleSystem
|
||||
|
||||
pilotComponent.Console = uid;
|
||||
ActionBlockerSystem.UpdateCanMove(entity);
|
||||
pilotComponent.Position = EntityManager.GetComponent<TransformComponent>(entity).Coordinates;
|
||||
pilotComponent.Position = Comp<TransformComponent>(entity).Coordinates;
|
||||
Dirty(entity, pilotComponent);
|
||||
}
|
||||
|
||||
@@ -357,12 +357,12 @@ public sealed partial class ShuttleConsoleSystem : SharedShuttleConsoleSystem
|
||||
_popup.PopupEntity(Loc.GetString("shuttle-pilot-end"), pilotUid, pilotUid);
|
||||
|
||||
if (pilotComponent.LifeStage < ComponentLifeStage.Stopping)
|
||||
EntityManager.RemoveComponent<PilotComponent>(pilotUid);
|
||||
RemComp<PilotComponent>(pilotUid);
|
||||
}
|
||||
|
||||
public void RemovePilot(EntityUid entity)
|
||||
{
|
||||
if (!EntityManager.TryGetComponent(entity, out PilotComponent? pilotComponent))
|
||||
if (!TryComp(entity, out PilotComponent? pilotComponent))
|
||||
return;
|
||||
|
||||
RemovePilot(entity, pilotComponent);
|
||||
|
||||
Reference in New Issue
Block a user