Some more fixes
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Content.Server.PDA
|
||||
/// </summary>
|
||||
/// <param name="player">The player to check in.</param>
|
||||
/// <returns>The id card component.</returns>
|
||||
public static IdCardComponent? GetHeldId(this IEntity player)
|
||||
public static IdCardComponent? GetHeldId(this EntityUid player)
|
||||
{
|
||||
IdCardComponent? firstIdInPda = null;
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace Content.Server.PDA
|
||||
/// <param name="player">The player to check in.</param>
|
||||
/// <param name="id">The id card component.</param>
|
||||
/// <returns>true if found, false otherwise.</returns>
|
||||
public static bool TryGetHeldId(this IEntity player, [NotNullWhen(true)] out IdCardComponent? id)
|
||||
public static bool TryGetHeldId(this EntityUid player, [NotNullWhen(true)] out IdCardComponent? id)
|
||||
{
|
||||
return (id = player.GetHeldId()) != null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user