ActionBlocker CanThrow uses EntityUid exclusively

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 13:20:55 +01:00
parent c051b1e056
commit c68c3219f8
3 changed files with 9 additions and 14 deletions

View File

@@ -543,7 +543,7 @@ namespace Content.Shared.Interaction
/// </summary>
public bool TryThrowInteraction(IEntity user, IEntity item)
{
if (user == null || item == null || !_actionBlockerSystem.CanThrow(user)) return false;
if (user == null || item == null || !_actionBlockerSystem.CanThrow(user.Uid)) return false;
ThrownInteraction(user, item);
return true;