Fix mob pulling jank (#7536)

This commit is contained in:
metalgearsloth
2022-04-14 12:29:56 +10:00
committed by GitHub
parent c5ca044585
commit be41effb49

View File

@@ -57,17 +57,6 @@ namespace Content.Client.Physics.Controllers
}
}
// If we're pulling a mob then make sure that isn't predicted so it doesn't fuck our velocity up.
if (TryComp(player, out SharedPullerComponent? pullerComp))
{
if (pullerComp.Pulling is {Valid: true} pulling &&
HasComp<MobStateComponent>(pulling) &&
TryComp(pulling, out PhysicsComponent? pullingBody))
{
pullingBody.Predict = false;
}
}
// Server-side should just be handled on its own so we'll just do this shizznit
if (TryComp(player, out IMobMoverComponent? mobMover))
{