ActionBlocker CanInteract uses EntityUid exclusively
ActionBlockerSystem fully uses EntityUid now!
This commit is contained in:
@@ -38,7 +38,7 @@ namespace Content.Server.Shuttles
|
||||
{
|
||||
if (comp.Console == null) continue;
|
||||
|
||||
if (!_blocker.CanInteract(comp.Owner))
|
||||
if (!_blocker.CanInteract(comp.OwnerUid))
|
||||
{
|
||||
toRemove.Add(comp);
|
||||
}
|
||||
@@ -122,7 +122,7 @@ namespace Content.Server.Shuttles
|
||||
|
||||
public void AddPilot(IEntity entity, ShuttleConsoleComponent component)
|
||||
{
|
||||
if (!_blocker.CanInteract(entity) ||
|
||||
if (!_blocker.CanInteract(entity.Uid) ||
|
||||
!entity.TryGetComponent(out PilotComponent? pilotComponent) ||
|
||||
component.SubscribedPilots.Contains(pilotComponent))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user