Refactor pauses (#2215)

* Refactor pauses

* The last of the physics

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-10-26 22:07:11 +11:00
committed by GitHub
parent 47c88c294b
commit 8a2e0ed142
4 changed files with 6 additions and 21 deletions

View File

@@ -57,10 +57,10 @@ namespace Content.Server.GameObjects.EntitySystems
public override void Update(float frameTime)
{
foreach (var (moverComponent, physics) in EntityManager.ComponentManager.EntityQuery<IMoverComponent, IPhysicsComponent>(false))
foreach (var (moverComponent, collidableComponent) in EntityManager.ComponentManager.EntityQuery<IMoverComponent, IPhysicsComponent>(false))
{
var entity = moverComponent.Owner;
UpdateKinematics(entity.Transform, moverComponent, physics);
UpdateKinematics(entity.Transform, moverComponent, collidableComponent);
}
}