ActionBlocker CanShiver uses EntityUid exclusively

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 13:51:12 +01:00
parent a2a8a6303f
commit cc9ae191a8
3 changed files with 10 additions and 14 deletions

View File

@@ -123,16 +123,12 @@ namespace Content.Shared.ActionBlocker
return !ev.Cancelled;
}
public bool CanShiver(IEntity entity)
{
var ev = new ShiverAttemptEvent(entity);
return !ev.Cancelled;
}
public bool CanShiver(EntityUid uid)
{
return CanShiver(EntityManager.GetEntity(uid));
var ev = new ShiverAttemptEvent(uid);
RaiseLocalEvent(uid, ev);
return !ev.Cancelled;
}
public bool CanSweat(IEntity entity)