Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -109,12 +109,12 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
||||
|
||||
private void OnShuttleStartup(EntityUid uid, ShuttleComponent component, ComponentStartup args)
|
||||
{
|
||||
if (!EntityManager.HasComponent<MapGridComponent>(uid))
|
||||
if (!HasComp<MapGridComponent>(uid))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!EntityManager.TryGetComponent(uid, out PhysicsComponent? physicsComponent))
|
||||
if (!TryComp(uid, out PhysicsComponent? physicsComponent))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -129,7 +129,7 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
||||
|
||||
public void Toggle(EntityUid uid, ShuttleComponent component)
|
||||
{
|
||||
if (!EntityManager.TryGetComponent(uid, out PhysicsComponent? physicsComponent))
|
||||
if (!TryComp(uid, out PhysicsComponent? physicsComponent))
|
||||
return;
|
||||
|
||||
component.Enabled = !component.Enabled;
|
||||
@@ -167,7 +167,7 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
||||
private void OnShuttleShutdown(EntityUid uid, ShuttleComponent component, ComponentShutdown args)
|
||||
{
|
||||
// None of the below is necessary for any cleanup if we're just deleting.
|
||||
if (EntityManager.GetComponent<MetaDataComponent>(uid).EntityLifeStage >= EntityLifeStage.Terminating)
|
||||
if (Comp<MetaDataComponent>(uid).EntityLifeStage >= EntityLifeStage.Terminating)
|
||||
return;
|
||||
|
||||
Disable(uid);
|
||||
|
||||
Reference in New Issue
Block a user