]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Changes required for engine PR (#23488)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Thu, 4 Jan 2024 01:08:23 +0000 (20:08 -0500)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2024 01:08:23 +0000 (12:08 +1100)
Content.IntegrationTests/Tests/Interaction/InteractionTest.Helpers.cs

index 42d58a88c964f469775f642d54017abbe0883d23..84e1afaf45cdda063f41fe355162b5516709b9b1 100644 (file)
@@ -524,7 +524,7 @@ public abstract partial class InteractionTest
     /// <summary>
     /// Assert whether or not the target has the given component.
     /// </summary>
-    protected void AssertComp<T>(bool hasComp = true, NetEntity? target = null)
+    protected void AssertComp<T>(bool hasComp = true, NetEntity? target = null) where T : IComponent
     {
         target ??= Target;
         if (target == null)
@@ -1120,6 +1120,6 @@ public abstract partial class InteractionTest
 
     protected EntityCoordinates Position(NetEntity uid) => Position(ToServer(uid));
     protected EntityCoordinates Position(EntityUid uid) => Xform(uid).Coordinates;
-    
+
     #endregion
 }