Fix thrown items not registering the tile they stop by colliding with a hard surface (#21107)
This commit is contained in:
@@ -101,6 +101,7 @@ namespace Content.Shared.Throwing
|
|||||||
if (TryComp<PhysicsComponent>(uid, out var physics))
|
if (TryComp<PhysicsComponent>(uid, out var physics))
|
||||||
{
|
{
|
||||||
_physics.SetBodyStatus(physics, BodyStatus.OnGround);
|
_physics.SetBodyStatus(physics, BodyStatus.OnGround);
|
||||||
|
_broadphase.RegenerateContacts(uid, physics);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EntityManager.TryGetComponent(uid, out FixturesComponent? manager))
|
if (EntityManager.TryGetComponent(uid, out FixturesComponent? manager))
|
||||||
|
|||||||
Reference in New Issue
Block a user