mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-06-09 10:06:43 +02:00
Fix GameTest.CTryComp using the server entity manager (#44230)
Fix GameTest.CTryComp using the server entity manager
This commit is contained in:
@@ -100,12 +100,12 @@ public abstract partial class GameTest
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Attempts to retrieve the given component from an entity on the server.
|
||||
/// Attempts to retrieve the given component from an entity on the client.
|
||||
/// </summary>
|
||||
public bool CTryComp<T>(EntityUid? target, [NotNullWhen(true)] out T? component)
|
||||
where T : IComponent
|
||||
{
|
||||
return SEntMan.TryGetComponent(target, out component);
|
||||
return CEntMan.TryGetComponent(target, out component);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user