Remove hands component reference (#15197)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Content.Shared.ActionBlocker;
|
||||
using Content.Shared.Hands.Components;
|
||||
using Content.Shared.Interaction;
|
||||
@@ -6,9 +7,7 @@ using Content.Shared.Tabletop.Events;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Network;
|
||||
using Robust.Shared.Players;
|
||||
using Robust.Shared.Serialization;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Content.Shared.Tabletop
|
||||
{
|
||||
@@ -114,7 +113,7 @@ namespace Content.Shared.Tabletop
|
||||
// CanSeeTable checks interaction action blockers. So no need to check them here.
|
||||
// If this ever changes, so that ghosts can spectate games, then the check needs to be moved here.
|
||||
|
||||
return TryComp(playerEntity, out SharedHandsComponent? hands) && hands.Hands.Count > 0;
|
||||
return TryComp(playerEntity, out HandsComponent? hands) && hands.Hands.Count > 0;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user