Fix thrown items not registering the tile they stop by colliding with a hard surface (#21107)

This commit is contained in:
Chubbygummibear
2023-11-14 04:54:35 -08:00
committed by GitHub
parent 318d843b80
commit e6e7a2358c

View File

@@ -101,6 +101,7 @@ namespace Content.Shared.Throwing
if (TryComp<PhysicsComponent>(uid, out var physics))
{
_physics.SetBodyStatus(physics, BodyStatus.OnGround);
_broadphase.RegenerateContacts(uid, physics);
}
if (EntityManager.TryGetComponent(uid, out FixturesComponent? manager))