Inline HasComponent entirely
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Content.Server.Physics.Controllers
|
||||
|
||||
foreach (var (singularity, physics) in EntityManager.EntityQuery<ServerSingularityComponent, PhysicsComponent>())
|
||||
{
|
||||
if (singularity.Owner.HasComponent<ActorComponent>() ||
|
||||
if (IoCManager.Resolve<IEntityManager>().HasComponent<ActorComponent>(singularity.Owner.Uid) ||
|
||||
singularity.BeingDeletedByAnotherSingularity) continue;
|
||||
|
||||
singularity.MoveAccumulator -= frameTime;
|
||||
|
||||
Reference in New Issue
Block a user