Use non-generic TryComp() for metadata & transform (#28133)
This commit is contained in:
@@ -261,7 +261,7 @@ public sealed partial class PathfindingSystem
|
||||
|
||||
private void OnBodyTypeChange(ref PhysicsBodyTypeChangedEvent ev)
|
||||
{
|
||||
if (TryComp<TransformComponent>(ev.Entity, out var xform) &&
|
||||
if (TryComp(ev.Entity, out TransformComponent? xform) &&
|
||||
xform.GridUid != null)
|
||||
{
|
||||
var aabb = _lookup.GetAABBNoContainer(ev.Entity, xform.Coordinates.Position, xform.LocalRotation);
|
||||
|
||||
Reference in New Issue
Block a user