Throwing fixes (#18576)

* Throwing fixes

- Status should always be reset.
- ResetDynamics when I meant ResetMassData but didn't matter anyway.

* a
This commit is contained in:
metalgearsloth
2023-08-15 09:49:59 +10:00
committed by GitHub
parent 76688c691c
commit a13da27905
2 changed files with 8 additions and 5 deletions

View File

@@ -48,10 +48,10 @@ namespace Content.Server.Damage.Systems
_sharedCameraRecoil.KickCamera(args.Target, direction);
}
// TODO: If more stuff touches this then handle it after.
if (TryComp<PhysicsComponent>(uid, out var physics))
{
_thrownItem.LandComponent(args.Thrown, args.Component, physics, false);
_physics.ResetDynamics(physics);
}
}