ActionBlocker CanChangeDirection uses EntityUid exclusively
This commit is contained in:
@@ -4,11 +4,11 @@ namespace Content.Shared.Interaction.Events
|
||||
{
|
||||
public class ChangeDirectionAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public ChangeDirectionAttemptEvent(IEntity entity)
|
||||
public ChangeDirectionAttemptEvent(EntityUid uid)
|
||||
{
|
||||
Entity = entity;
|
||||
Uid = uid;
|
||||
}
|
||||
|
||||
public IEntity Entity { get; }
|
||||
public EntityUid Uid { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Content.Shared.Interaction
|
||||
|
||||
public bool TryFaceAngle(IEntity user, Angle diffAngle)
|
||||
{
|
||||
if (_actionBlockerSystem.CanChangeDirection(user))
|
||||
if (_actionBlockerSystem.CanChangeDirection(user.Uid))
|
||||
{
|
||||
user.Transform.WorldRotation = diffAngle;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user