Fix pullchain prediction (#7768)

This commit is contained in:
metalgearsloth
2022-04-25 17:24:40 +10:00
committed by GitHub
parent e4ce20ae9b
commit 37e2154019

View File

@@ -54,6 +54,12 @@ namespace Content.Client.Physics.Controllers
{
pullerBody.Predict = false;
body.Predict = false;
if (TryComp<SharedPullerComponent>(player, out var playerPuller) && playerPuller.Pulling != null &&
TryComp<PhysicsComponent>(playerPuller.Pulling, out var pulledBody))
{
pulledBody.Predict = false;
}
}
}