Correctly implement movement blocking and undo that appearance mess.

This commit is contained in:
Pieter-Jan Briers
2019-04-04 19:43:01 +02:00
parent 0fe1407214
commit ea581e67c8
4 changed files with 35 additions and 56 deletions

View File

@@ -105,7 +105,7 @@ namespace Content.Server.GameObjects.EntitySystems
private static void UpdateKinematics(ITransformComponent transform, PlayerInputMoverComponent mover, PhysicsComponent physics)
{
if (mover.VelocityDir.LengthSquared < 0.001 || mover.Disabled)
if (mover.VelocityDir.LengthSquared < 0.001 || !ActionBlockerSystem.CanMove(mover.Owner))
{
if (physics.LinearVelocity != Vector2.Zero)
physics.LinearVelocity = Vector2.Zero;