ActionBlocker CanSweat uses EntityUid exclusively
This commit is contained in:
@@ -131,18 +131,12 @@ namespace Content.Shared.ActionBlocker
|
||||
return !ev.Cancelled;
|
||||
}
|
||||
|
||||
public bool CanSweat(IEntity entity)
|
||||
public bool CanSweat(EntityUid uid)
|
||||
{
|
||||
var ev = new SweatAttemptEvent(entity);
|
||||
|
||||
RaiseLocalEvent(entity.Uid, ev);
|
||||
var ev = new SweatAttemptEvent(uid);
|
||||
RaiseLocalEvent(uid, ev);
|
||||
|
||||
return !ev.Cancelled;
|
||||
}
|
||||
|
||||
public bool CanSweat(EntityUid uid)
|
||||
{
|
||||
return CanSweat(EntityManager.GetEntity(uid));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user