Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -226,7 +226,7 @@ public sealed class PullingSystem : EntitySystem
|
||||
if (component.Pulling != args.BlockingEntity)
|
||||
return;
|
||||
|
||||
if (EntityManager.TryGetComponent(args.BlockingEntity, out PullableComponent? comp))
|
||||
if (TryComp(args.BlockingEntity, out PullableComponent? comp))
|
||||
{
|
||||
TryStopPull(args.BlockingEntity, comp);
|
||||
}
|
||||
@@ -424,7 +424,7 @@ public sealed class PullingSystem : EntitySystem
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!EntityManager.TryGetComponent<PhysicsComponent>(pullableUid, out var physics))
|
||||
if (!TryComp<PhysicsComponent>(pullableUid, out var physics))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user