Use non-generic TryComp() for metadata & transform (#28133)
This commit is contained in:
@@ -56,7 +56,7 @@ namespace Content.Server.Engineering.EntitySystems
|
||||
if (component.Deleted || Deleted(uid))
|
||||
return;
|
||||
|
||||
if (!TryComp<TransformComponent>(uid, out var transformComp))
|
||||
if (!TryComp(uid, out TransformComponent? transformComp))
|
||||
return;
|
||||
|
||||
var entity = EntityManager.SpawnEntity(component.Prototype, transformComp.Coordinates);
|
||||
|
||||
Reference in New Issue
Block a user