Add constraint to InteractionTest Comp (#17765)
This commit is contained in:
@@ -642,7 +642,7 @@ public abstract partial class InteractionTest
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convenience method to get components on the target. Returns SERVER-SIDE components.
|
/// Convenience method to get components on the target. Returns SERVER-SIDE components.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected T Comp<T>(EntityUid? target = null)
|
protected T Comp<T>(EntityUid? target = null) where T : IComponent
|
||||||
{
|
{
|
||||||
target ??= Target;
|
target ??= Target;
|
||||||
if (target == null)
|
if (target == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user