Pulling state handling changes (#9952)

This commit is contained in:
Leon Friedrich
2022-07-29 14:13:43 +12:00
committed by GitHub
parent 7cf67e1323
commit ebe6093af1
4 changed files with 35 additions and 26 deletions

View File

@@ -71,10 +71,13 @@ namespace Content.Client.Physics.Controllers
if (TryComp(player, out JointComponent? jointComponent))
{
foreach (var joint in jointComponent.GetJoints)
foreach (var joint in jointComponent.GetJoints.Values)
{
joint.BodyA.Predict = true;
joint.BodyB.Predict = true;
if (TryComp(joint.BodyAUid, out PhysicsComponent? physics))
physics.Predict = true;
if (TryComp(joint.BodyBUid, out physics))
physics.Predict = true;
}
}