Fixes not being able to ghost on move when you're a head or brain

This commit is contained in:
Vera Aguilera Puerto
2021-03-15 21:16:34 +01:00
parent d3251f35bf
commit 72ee101907
5 changed files with 14 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ namespace Content.Shared.GameObjects.EntitySystems
private static void HandleDirChange(ICommonSession? session, Direction dir, ushort subTick, bool state)
{
if (!TryGetAttachedComponent<SharedPlayerInputMoverComponent>(session, out var moverComp))
if (!TryGetAttachedComponent<IMoverComponent>(session, out var moverComp))
return;
var owner = session?.AttachedEntity;