Changes required for engine PR (#23488)

(cherry picked from commit 42ec9b29677f06b4205678ec38104991f65d8c61)
This commit is contained in:
Leon Friedrich 2024-01-03 20:08:23 -05:00 committed by Debug
parent 3a2e0586fc
commit 661f3eb54a
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
1 changed files with 2 additions and 2 deletions

View 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
}