Remove bad component state hack from client mover component.

This commit is contained in:
Pieter-Jan Briers
2020-06-24 11:57:56 +02:00
parent f3a816321c
commit 8ccf98333e

View File

@@ -1,7 +1,5 @@
using Content.Shared.GameObjects.Components.Movement;
using Robust.Client.Player;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Map;
#nullable enable
@@ -14,13 +12,5 @@ namespace Content.Client.GameObjects.Components.Movement
{
public override GridCoordinates LastPosition { get; set; }
public override float StepSoundDistance { get; set; }
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
{
if (IoCManager.Resolve<IPlayerManager>().LocalPlayer!.ControlledEntity == Owner)
{
base.HandleComponentState(curState, nextState);
}
}
}
}