Add constraint to InteractionTest Comp (#17765)

This commit is contained in:
metalgearsloth
2023-07-01 23:05:06 +10:00
committed by GitHub
parent f4b61d7db1
commit 432e1288bd

View File

@@ -642,7 +642,7 @@ public abstract partial class InteractionTest
/// <summary>
/// Convenience method to get components on the target. Returns SERVER-SIDE components.
/// </summary>
protected T Comp<T>(EntityUid? target = null)
protected T Comp<T>(EntityUid? target = null) where T : IComponent
{
target ??= Target;
if (target == null)