Replace all T : Component constraints with T : IComponent (#21073)
This commit is contained in:
@@ -151,7 +151,7 @@ public partial class SharedBodySystem
|
||||
public List<(T Comp, OrganComponent Organ)> GetBodyOrganComponents<T>(
|
||||
EntityUid uid,
|
||||
BodyComponent? body = null)
|
||||
where T : Component
|
||||
where T : IComponent
|
||||
{
|
||||
if (!Resolve(uid, ref body))
|
||||
return new List<(T Comp, OrganComponent Organ)>();
|
||||
@@ -180,7 +180,7 @@ public partial class SharedBodySystem
|
||||
EntityUid uid,
|
||||
[NotNullWhen(true)] out List<(T Comp, OrganComponent Organ)>? comps,
|
||||
BodyComponent? body = null)
|
||||
where T : Component
|
||||
where T : IComponent
|
||||
{
|
||||
if (!Resolve(uid, ref body))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user